stephenLYZ opened a new pull request #14221:
URL: https://github.com/apache/superset/pull/14221


   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   The clear icon of react-select will disappear after clicking, and the 
popover component of Antd will capture the parent component (here is 
document.body) under the mousedown event, this event will determine whether the 
current target exists under the parent component, if it does not exist, the 
popover will be closed, and at this time the clear icon no longer exists.
   All select components which set to `clearable` under popover will have the 
same problem.
   So here I passed the `actionMeta` property, if it is a clear event, the 
popover will not be closed
   .### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   #### Before
   ![Kapture 2021-04-18 at 20 40 
05](https://user-images.githubusercontent.com/11830681/115146171-f7010380-a087-11eb-8959-c2d02e4a4c78.gif)
   #### After
   ![Kapture 2021-04-18 at 20 41 
03](https://user-images.githubusercontent.com/11830681/115146179-fb2d2100-a087-11eb-9320-6d616db9dc53.gif)
   
   ### TEST PLAN
   <!--- What steps should be taken to verify the changes -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [x] Has associated issue: Fixes #12475
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to