13 lines
389 B
JavaScript
13 lines
389 B
JavaScript
function BlazorFocusElement() {
|
|
|
|
if (document.getElementById('allButtons') != null) {
|
|
var childDivs = document.getElementById('allButtons').getElementsByTagName('button');
|
|
|
|
for (var iElement in childDivs) {
|
|
if (childDivs[iElement].type == 'button') {
|
|
childDivs[iElement].blur();
|
|
}
|
|
else { break; }
|
|
}
|
|
}
|
|
} |