Dialog takes over focus on Stripe checkout input elements. #19666
Labels
component: dialog
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
I'm trying to use the stripe checkout (react-stripe-checkout package) on top of a Dialog. Before I upgraded to the new version of material-ui (previous was 0.19.4) it worked fine. I upgraded to 4.9.2. Now when the dialog is open and Stripe checkout is on top, if you click any of the inputs, they will focus for a split second, and then lose focus. I've tried to look at events happening on the page and it looks like some events are added to the inputs when on top of the dialog. When not over the dialog, the checkout works as expected. This happens on the latest versions of Chrome, Firefox, and Safari. Any help or input is very much appreciated.
Current Behavior 😯
When the Stripe Checkout modal is on top of a dialog, the Stripe inputs gain focus on click, and then immediately lose focus.
Expected Behavior 🤔
On 0.19.4 everything works as expected. I have a Stripe Checkout modal above the material ui dialog and I can interact with the form.
Steps to Reproduce 🕹
Steps:
Context 🔦
The text was updated successfully, but these errors were encountered: