瀏覽代碼

Fix dropdown click not registering correctly

Fixes an issue where the time between mouse button down and up had to be
less than 100ms. Time was increased to 1s.

The timing is required in order to be able to open the dropdown list
when the dropdown button is focused using the TAB key.
Sergiu Miclea 6 年之前
父節點
當前提交
67fdf2e630
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/molecules/Dropdown/Dropdown.tsx

+ 1 - 1
src/components/molecules/Dropdown/Dropdown.tsx

@@ -400,7 +400,7 @@ class Dropdown extends React.Component<Props, State> {
 
 
     this.justFocused = true
     this.justFocused = true
     this.toggleDropdownList(true)
     this.toggleDropdownList(true)
-    setTimeout(() => { this.justFocused = false }, 100)
+    setTimeout(() => { this.justFocused = false }, 1000)
   }
   }
 
 
   handleBlur() {
   handleBlur() {