Skip to content

Commit

Permalink
FIO-7355 Fixed issue with HTML5 select flickering on initial click (#…
Browse files Browse the repository at this point in the history
…5366)

* FIO-7355 Fixed issue with HTML5 select flickering on initial click

* FIO-7355 Reworked the fix for HTML5 Select flickering issue
  • Loading branch information
antonSoftensity authored Nov 2, 2023
1 parent 51f82ab commit 4f58085
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,11 @@ export default class SelectComponent extends ListComponent {
}

this.focusableElement = input;
this.addEventListener(input, 'focus', () => this.update());

if (this.component.dataSrc === 'custom') {
this.addEventListener(input, 'focus', () => this.updateCustomItems());
}

this.addEventListener(input, 'keydown', (event) => {
const { key } = event;

Expand Down

0 comments on commit 4f58085

Please sign in to comment.