kgabryje opened a new pull request #15305: URL: https://github.com/apache/superset/pull/15305
### SUMMARY Due to what seems to be a bug in Antd, when we resize the browser window while popover is open, it disconnect's from its trigger node. This PR fixes it by manually closing the popover when `resize` event fires. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF Before: see https://github.com/apache/superset/issues/14974 After: https://user-images.githubusercontent.com/15073128/122987735-36f2a880-d3a1-11eb-85e8-b3603abec33a.mov ### TESTING INSTRUCTIONS 1. Add a filter to a dashboard 2. Open filter indicator popover 3. Resize the browser window and verify that popover closed itself ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [x] Has associated issue: closes #14974 - [ ] 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]
