added disable property

This commit is contained in:
Gerard 2019-02-25 10:10:44 +01:00
parent 54a835eefd
commit 007139f2f6
1 changed files with 2 additions and 5 deletions

View File

@ -11,11 +11,8 @@ export default class Controller extends Component {
element.tabIndex = 0;
element.addEventListener('focus', () => {
if (this.field || this.disabled) {
console.log(element.style.cursor);
// element.style.cursor = 'none!important';
return;
}
if (this.field || this.disabled) return;
$transclude((tClone, tScope) => {
this.field = tClone;
this.tScope = tScope;