Make sure tree find widget can be moved using the keyboard (#156583)

fixes #156251
This commit is contained in:
João Moreno
2022-07-28 17:27:00 +02:00
committed by GitHub
parent 35042f5316
commit 9c4a29cc58
2 changed files with 28 additions and 4 deletions

View File

@@ -1869,9 +1869,11 @@ export function h(tag: string, ...args: [] | [attributes: { $: string } & Partia
typeof cssValue === 'number' ? cssValue + 'px' : '' + cssValue
);
}
continue;
} else if (key === 'tabIndex') {
el.tabIndex = value;
} else {
el.setAttribute(camelCaseToHyphenCase(key), value.toString());
}
el.setAttribute(camelCaseToHyphenCase(key), value.toString());
}
result['root'] = el;