michael-s-molina opened a new pull request, #27996: URL: https://github.com/apache/superset/pull/27996
### SUMMARY Fixes a bug where the `onChange` event was being fired with an incorrect value when pasting a text that corresponds to an existing option in the database, which was not loaded previously due to pagination. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF https://github.com/apache/superset/assets/70410625/b6f340ec-0e4a-450b-be38-e4b1181c5dda https://github.com/apache/superset/assets/70410625/305eb0f0-74ac-4053-a836-f877df2bc951 ### TESTING INSTRUCTIONS 1 - Use an async select that has enough values to trigger pagination. You can also reduce the Select's default page size to test. 2 - Paste a value that is not loaded yet by the Select component 3 - Check that the `onChange` event is called with the correct value. It's easier to check this when the options have numeric values. In that case, `onChange` should receive the numeric value instead of the pasted text as the value property. ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
