Skip to content

Commit

Permalink
fix: add missing uniqueIdPrefix to Lit date-picker version (#8256)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Dec 2, 2024
1 parent d5e20c6 commit 20487c4
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions packages/date-picker/src/vaadin-lit-date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,21 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
super.ready();

this.addController(
new InputController(this, (input) => {
this._setInputElement(input);
this._setFocusElement(input);
this.stateTarget = input;
this.ariaTarget = input;
}),
new InputController(
this,
(input) => {
this._setInputElement(input);
this._setFocusElement(input);
this.stateTarget = input;
this.ariaTarget = input;
},
{
// The "search" word is a trick to prevent Safari from enabling AutoFill,
// which is causing click issues:
// https://github.com/vaadin/web-components/issues/6817#issuecomment-2268229567
uniqueIdPrefix: 'search-input',
},
),
);
this.addController(new LabelledInputController(this.inputElement, this._labelController));

Expand Down

0 comments on commit 20487c4

Please sign in to comment.