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.tabIndex = 0;
element.addEventListener('focus', () => { element.addEventListener('focus', () => {
if (this.field || this.disabled) { if (this.field || this.disabled) return;
console.log(element.style.cursor);
// element.style.cursor = 'none!important';
return;
}
$transclude((tClone, tScope) => { $transclude((tClone, tScope) => {
this.field = tClone; this.field = tClone;
this.tScope = tScope; this.tScope = tScope;