소스 검색

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 5 년 전
부모
커밋
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() {