From 4f58085e0c66f245ab18d9ec890aa41fb725cadd Mon Sep 17 00:00:00 2001 From: antonSoftensity <61691723+antonSoftensity@users.noreply.github.com> Date: Thu, 2 Nov 2023 09:02:10 +0200 Subject: [PATCH] FIO-7355 Fixed issue with HTML5 select flickering on initial click (#5366) * FIO-7355 Fixed issue with HTML5 select flickering on initial click * FIO-7355 Reworked the fix for HTML5 Select flickering issue --- src/components/select/Select.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/select/Select.js b/src/components/select/Select.js index 9e651ee580..f976dbf96d 100644 --- a/src/components/select/Select.js +++ b/src/components/select/Select.js @@ -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;