Remaining JS linting TODO (#29289)
* Enable and fix all occurrences with no-mixed-operators rule * Take care of the max-depth warning in button.js Signed-off-by: mhatvan <markus_hatvan@aon.at>
This commit is contained in:
parent
6885d65578
commit
4d101491da
6 changed files with 25 additions and 27 deletions
|
|
@ -74,17 +74,15 @@ class Button {
|
|||
if (rootElement) {
|
||||
const input = SelectorEngine.findOne(Selector.INPUT, this._element)
|
||||
|
||||
if (input) {
|
||||
if (input.type === 'radio') {
|
||||
if (input.checked &&
|
||||
this._element.classList.contains(ClassName.ACTIVE)) {
|
||||
triggerChangeEvent = false
|
||||
} else {
|
||||
const activeElement = SelectorEngine.findOne(Selector.ACTIVE, rootElement)
|
||||
if (input && input.type === 'radio') {
|
||||
if (input.checked &&
|
||||
this._element.classList.contains(ClassName.ACTIVE)) {
|
||||
triggerChangeEvent = false
|
||||
} else {
|
||||
const activeElement = SelectorEngine.findOne(Selector.ACTIVE, rootElement)
|
||||
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName.ACTIVE)
|
||||
}
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName.ACTIVE)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue