-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
👻 Brief Description
When [disabled]="... logic on is a button, disableBtn: true option does not disable the button
🎩 workflow configuration
Angular2PromiseButtonModule.forRoot({
spinnerTpl: '<div class="cssload-container"><div class="cssload-speeding-wheel"></div></div>',
disableBtn: true
}),
<button mat-flat-button [matTooltipDisabled]="!data.service.previewMode"
matTooltip="Cannot book in preview!"
[disabled]="!newMeetingForm.valid || (isStripeStandard(caldata.paymentAccountType) && !cardValid)"
[type]="data.service.previewMode ? 'button' : 'submit'" color="primary"
[promiseBtn]="submitPromise"
aria-label="Confirm">Confirm</button>
Steps To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
🚓 Expected behavior
Button to be disabled when clicking, the promise is in motion.
➕ Additional context
Seems related #34