Skip to content

Commit

Permalink
fix: render calendar icon before other prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaribo committed May 17, 2024
1 parent 1e36735 commit b8350b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/date-picker/date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,12 +739,13 @@ export default class IgcDatePickerComponent extends FormAssociatedRequiredMixin(
@igcInput=${this.handleInputEvent}
exportparts="input, label, prefix, suffix"
>
${this.renderCalendarIcon()}
<slot
name="prefix"
slot=${ifDefined(!this.prefixes.length ? undefined : 'prefix')}
@slotchange=${this.onSlotChange}
></slot>
${this.renderClearIcon()}${this.renderCalendarIcon()}
${this.renderClearIcon()}
<slot
name="suffix"
slot=${ifDefined(!this.suffixes.length ? undefined : 'suffix')}
Expand Down

0 comments on commit b8350b6

Please sign in to comment.