Skip to content

Commit

Permalink
make sonar happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JesmoDev committed Jul 25, 2024
1 parent 79cc7f8 commit 0b55787
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/uui-radio/lib/uui-radio-group.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,14 @@ export class UUIRadioGroupElement extends UUIFormControlMixin(LitElement, '') {
}

#selectPreviousRadio() {
this.value = this.#findAdjacentRadioElement(-1)?.value || '';
this.#radioElements[this.#selected || 0]?.focus();
this.value = this.#findAdjacentRadioElement(-1)?.value ?? '';
this.#radioElements[this.#selected ?? 0]?.focus();
this.#fireChangeEvent();
}

#selectNextRadio() {
this.value = this.#findAdjacentRadioElement()?.value || '';
this.#radioElements[this.#selected || 0]?.focus();
this.value = this.#findAdjacentRadioElement()?.value ?? '';
this.#radioElements[this.#selected ?? 0]?.focus();
this.#fireChangeEvent();
}

Expand Down
1 change: 0 additions & 1 deletion packages/uui-radio/lib/uui-radio.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export class UUIRadioElement extends LitElement {
public makeFocusable() {
if (!this.disabled) {
this.removeAttribute('tabindex');
// this.setAttribute('tabindex', '0');
}
}
/**
Expand Down

0 comments on commit 0b55787

Please sign in to comment.