You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ngx-plaid-link@13.0.1 with angular@13.2.2 thengxPlaidLink directive on a html <button> adding disabled to the button does not disable the button and the button can still be clicked and plaid link will open.
in the directive it's disabling the button itself with this.disabledButton = true; until plaid is initialized, then re-enabling it. Probably need to add a disabled input value from parent and then use an || for button is disabled by plaid loading or by user
Probably need to add a disabled input value from parent and then use an || for button is disabled by plaid loading or by user
This doesn't seem to work unfortunately, unless I'm just doing something totally wrong which could be the case 🤣 .
If you're trying to do this to handle the link token scenario, that's not really going to work anyway because the button will still be rendered but won't have a token yet. I've been getting around this by using an *ngIf to render a loading indicator until the link token is returned to the app from backend, and then rendering the button with the directive once I have the token.
You could also use that *ngIf to render a disabled button without the directive and swap out to the button with the directive once you get a token. I'll be updating the readme in the PR for v14.0.0 to account for this scenario.
When using ngx-plaid-link@13.0.1 with angular@13.2.2 the
ngxPlaidLink
directive on a html<button>
addingdisabled
to the button does not disable the button and the button can still be clicked and plaid link will open.Here is a stackblitz that shows the reproduction
https://stackblitz.com/edit/angular-webcontainer-template-nzh3r7?devtoolsheight=33&file=src/app/app.component.html
To view bug in stackblitz do the following
yarn start
into console that pops uplink bank account
button and observe plaid link popup even though button hasdisabled
set in htmlI'll work on getting a fix submitted for this but I wanted to add an issue to track it
The text was updated successfully, but these errors were encountered: