plaid / react-plaid-link

React bindings for Plaid Link
https://plaid.github.io/react-plaid-link
MIT License
267 stars 149 forks source link

Plaid keeps on flickering and couldn't enter account details #160

Closed hari-criticalasset closed 3 years ago

hari-criticalasset commented 3 years ago

Plaid keeps flickering and doesn't allow to enter account details.

When clicked on the input, it is getting focused but defocused instantly due to flickering.

Here is a video of the issue reproduction:

https://drive.google.com/file/d/1wr2kVA7fNegWvbTjIN_5XzNLBSSVKLud/view?usp=sharing

aeidelson commented 3 years ago

Hello @hari-criticalasset,

I'm sorry to see that you've been having problems.

We haven't been able to reproduce this issue on our side and wonder if it may be related to the specifics of your page. Would it be possible to share a page (or a url) where this bug occurs? It would also be helpful to know what browser and version you are using.

Thank you!

daniellacoste commented 3 years ago

Hey @hari-criticalasset,

Daniel from Plaid Support — I'll give you an assist with this issue in the Support ticket you filed. Thanks for flagging!

hari-criticalasset commented 3 years ago

Thanks @daniellacoste , @aeidelson

Chakra UI implements data-focus-guard="true" to enforce focus into Drawers and Modals.

This was fixed by using "trapFocus" property.

osdiab commented 3 years ago

For anyone that runs into this issue: my company also saw this behavior, but we don't use react-plaid-link (we just use the normal script tag) nor do we use Chakra UI. The reason it happened was because we triggered the plaid modal to open more than once on a single page. As a result, the multiple Plaid instances competed with each other for focus, causing it to be unusable. Hope this helps someone!

reggieofarrell commented 3 years ago

For anyone using Material UI... if your are loading Plaid inside of a dialog/drawer, you have to put disableEnforceFocus on the modal/drawer

mlakmal commented 3 years ago

For anyone using Material UI... if your are loading Plaid inside of a dialog/drawer, you have to put disableEnforceFocus on the modal/drawer

@reggieofarrell thanks this issue came up on our app as well with material-ui dialogs

makeitraina commented 3 years ago

For anyone using Material UI... if your are loading Plaid inside of a dialog/drawer, you have to put disableEnforceFocus on the modal/drawer

Thank you @reggieofarrell.

This comment is about to save thousands of peoples, a lot of time! Plaid should seriously have something related to this in their docs.

TannerPlauche commented 2 years ago

Thank you @reggieofarrell. This was giving me lots of trouble. That fixed it. THANK YOU!!!

yousefa00 commented 2 years ago

@hari-criticalasset how exactly did you fix this? Where do you pass trapFocus?

ChirayyuS commented 11 months ago

I am experiencing same issue, I am not using Material-UI modal or any overlay components to load Plaid. but using usePlaidLink. how to add/pass trapFocus / disableEnforceFocus ?

alecherryy commented 8 months ago

Ran into the same issue; we too rendered the Plaid modal more than once with usePlaidLink(). Removing one of the instances, fixed the issue.