We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6ae65 commit dc2a561Copy full SHA for dc2a561
src/BootstrapBlazor/Components/Input/OtpInput.razor.js
@@ -51,15 +51,15 @@ export function init(id) {
51
}
52
53
const setPrevFocus = (el, target) => {
54
- const inputs = [...el.querySelectorAll('input')];
+ const inputs = [...el.querySelectorAll('.bb-opt-item')];
55
let index = inputs.indexOf(target);
56
if (index > 0) {
57
setFocus(inputs[index - 1]);
58
59
60
61
const setNextFocus = (el, target) => {
62
63
64
if (index < inputs.length - 1) {
65
setFocus(inputs[index + 1]);
0 commit comments