Fixed #586 - Dropdown inside datable using showClear causing: Cannot read property 'classList' of null
parent
9b9802d838
commit
41074b0e7e
|
@ -143,10 +143,14 @@ export default class DomHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
static hasClass(element, className) {
|
static hasClass(element, className) {
|
||||||
if (element.classList)
|
if (element) {
|
||||||
return element.classList.contains(className);
|
if (element.classList)
|
||||||
else
|
return element.classList.contains(className);
|
||||||
return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
else
|
||||||
|
return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static find(element, selector) {
|
static find(element, selector) {
|
||||||
|
|
Loading…
Reference in New Issue