mirror of
https://github.com/google/material-design-lite.git
synced 2024-08-16 15:50:34 +03:00
Automatic uncheck header checkbox
Uncheck the main checkbox when unchecking a checkbox if is checked
This commit is contained in:
parent
5324cedee2
commit
71ad03e8ef
@ -76,6 +76,10 @@
|
||||
row.classList.add(this.CssClasses_.IS_SELECTED);
|
||||
} else {
|
||||
row.classList.remove(this.CssClasses_.IS_SELECTED);
|
||||
var thead_checkbox = this.element_.tHead.querySelector('.mdl-checkbox.is-checked');
|
||||
if(thead_checkbox !== null){
|
||||
thead_checkbox['MaterialCheckbox'].uncheck();
|
||||
}
|
||||
}
|
||||
}.bind(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user