From c563446568ac404ee13a0e0ae7ce9c3135d54087 Mon Sep 17 00:00:00 2001 From: Anton K Date: Tue, 10 Oct 2023 15:20:03 +0300 Subject: [PATCH 1/2] FIO-7355 Fixed issue with HTML5 select flickering on initial click --- src/components/select/Select.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/select/Select.js b/src/components/select/Select.js index 9e651ee580..cee40e832f 100644 --- a/src/components/select/Select.js +++ b/src/components/select/Select.js @@ -943,7 +943,6 @@ export default class SelectComponent extends ListComponent { } this.focusableElement = input; - this.addEventListener(input, 'focus', () => this.update()); this.addEventListener(input, 'keydown', (event) => { const { key } = event; From b2e6cb600f467511eeaae956d21e5d8ab6feeb86 Mon Sep 17 00:00:00 2001 From: Anton K Date: Wed, 1 Nov 2023 15:38:34 +0300 Subject: [PATCH 2/2] FIO-7355 Reworked the fix for HTML5 Select flickering issue --- src/components/select/Select.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/select/Select.js b/src/components/select/Select.js index cee40e832f..f976dbf96d 100644 --- a/src/components/select/Select.js +++ b/src/components/select/Select.js @@ -943,6 +943,11 @@ export default class SelectComponent extends ListComponent { } this.focusableElement = input; + + if (this.component.dataSrc === 'custom') { + this.addEventListener(input, 'focus', () => this.updateCustomItems()); + } + this.addEventListener(input, 'keydown', (event) => { const { key } = event;