Skip to content

Commit

Permalink
Merge pull request #40 from navedqb/fix--6153
Browse files Browse the repository at this point in the history
fix: prevent icon display when inline property is set
  • Loading branch information
navedqb authored Aug 1, 2024
2 parents 2d5c746 + ab608a2 commit eff82df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/primevue/src/datepicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@keydown="onKeyDown"
:pt="ptm('pcInput')"
/>
<slot v-if="showIcon && iconDisplay === 'button'" name="dropdownbutton">
<slot v-if="showIcon && iconDisplay === 'button' && !inline" name="dropdownbutton">
<button
:class="cx('dropdown')"
:disabled="disabled"
Expand All @@ -49,7 +49,7 @@
</slot>
</button>
</slot>
<template v-else-if="showIcon && iconDisplay === 'input'">
<template v-else-if="showIcon && iconDisplay === 'input' && !inline">
<span v-if="$slots.inputicon || showIcon" :class="cx('inputIconContainer')" v-bind="ptm('inputIconContainer')">
<slot name="inputicon" :class="cx('inputIcon')" :clickCallback="onButtonClick">
<component :is="icon ? 'i' : 'CalendarIcon'" :class="[icon, cx('inputIcon')]" @click="onButtonClick" v-bind="ptm('inputicon')" />
Expand Down

0 comments on commit eff82df

Please sign in to comment.