]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20542 - Fixed date picker double click to open
authorKevin Silva <kevin.silva@sonarsource.com>
Thu, 1 Feb 2024 09:40:23 +0000 (10:40 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 1 Feb 2024 20:02:47 +0000 (20:02 +0000)
server/sonar-web/design-system/src/components/input/DatePicker.tsx

index ac63cfa33a37532bc58eaf806cc918640f1a72a9..e282d1e4eedf01ab045303b312b29fa59831bb91 100644 (file)
@@ -146,8 +146,8 @@ export class DatePicker extends React.PureComponent<Props, State> {
     }
 
     return (
-      <FocusOutHandler onFocusOut={this.closeCalendar}>
-        <OutsideClickHandler onClickOutside={this.closeCalendar}>
+      <OutsideClickHandler onClickOutside={this.closeCalendar}>
+        <FocusOutHandler onFocusOut={this.closeCalendar}>
           <EscKeydownHandler onKeydown={this.closeCalendar}>
             <Popup
               allowResizing
@@ -219,8 +219,8 @@ export class DatePicker extends React.PureComponent<Props, State> {
               </span>
             </Popup>
           </EscKeydownHandler>
-        </OutsideClickHandler>
-      </FocusOutHandler>
+        </FocusOutHandler>
+      </OutsideClickHandler>
     );
   }
 }