Bug #575 ng-click se llama en los vn-button deshabilitados
This commit is contained in:
parent
fd313a3134
commit
83bf54569c
|
@ -5,7 +5,13 @@ import './style.scss';
|
|||
export default class Button extends Input {
|
||||
constructor($element) {
|
||||
super($element);
|
||||
this.$element = $element;
|
||||
this.input = this.element.querySelector('.mdl-button');
|
||||
|
||||
$element[0].addEventListener('click', event => {
|
||||
if (this.disabled)
|
||||
event.stopImmediatePropagation();
|
||||
});
|
||||
}
|
||||
}
|
||||
Button.$inject = ['$element'];
|
||||
|
|
Loading…
Reference in New Issue