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
{{ message }}
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
During the promise resolution, if ng-disabled value changes to false, then once the promise is resolved, the disabled attribute is always removed (not taking into account the state of ng-disabled).
We made a small fix on our local version:
We added ngDisabled in the directive's scope
We modified handleLoadingFinished to take into account ngDisabled value
So here it is:
function handleLoadingFinished(btnEl) {
if ((!cfg.minDuration || minDurationTimeoutDone) && promiseDone) {
if (cfg.btnLoadingClass) {
btnEl.removeClass(cfg.btnLoadingClass);
}
if (cfg.disableBtn && !scope.ngDisabled) {
btnEl.removeAttr('disabled');
}
}
}
Hello,
During the promise resolution, if ng-disabled value changes to false, then once the promise is resolved, the disabled attribute is always removed (not taking into account the state of ng-disabled).
We made a small fix on our local version:
So here it is:
AND
Could you include this as a feature in you next version of the directive ?
Thank you.
The text was updated successfully, but these errors were encountered: