Skip to content

Commit

Permalink
Fixed DropDown will focus disabled items in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Oct 3, 2024
1 parent 343afff commit b83cca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Radzen.Blazor/wwwroot/Radzen.Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,9 @@ window.Radzen = {
break;
}
} else {
while (ul.nextSelectedIndex > 0) {
while (ul.nextSelectedIndex >= 0) {
ul.nextSelectedIndex--;
if (!childNodes[ul.nextSelectedIndex].classList.contains('rz-state-disabled'))
if (!childNodes[ul.nextSelectedIndex] || !childNodes[ul.nextSelectedIndex].classList.contains('rz-state-disabled'))
break;
}
}
Expand Down

0 comments on commit b83cca1

Please sign in to comment.