db widget UX

This commit is contained in:
SPRINX0\prochazka
2024-11-25 15:52:26 +01:00
parent a37b74f693
commit dfdb86de6f
8 changed files with 70 additions and 23 deletions

View File

@@ -23,8 +23,12 @@
const debouncedSet = _.debounce(x => (value = x), 500);
export function focus() {
export function focus(text) {
domInput.focus();
if (text) {
domInput.value = text;
value = text;
}
}
</script>