summaryrefslogtreecommitdiff
path: root/web/source/settings/components/form/combobox.jsx
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-11-25 15:49:48 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-25 15:49:48 +0100
commit665d902fd72ef4fffb273502b6f010a94a47e15b (patch)
tree8fb9eb7aec5cad2ccf96ae1ebe276f18ad0735c0 /web/source/settings/components/form/combobox.jsx
parent[feature] `PATCH /api/v1/admin/custom_emojis/{id}` endpoint (#1061) (diff)
downloadgotosocial-665d902fd72ef4fffb273502b6f010a94a47e15b.tar.xz
[feature/frogend] modify local emoji (#1143)
* update danger button red * emoji category and image modification * debug bundles in dev * fix linting error
Diffstat (limited to 'web/source/settings/components/form/combobox.jsx')
-rw-r--r--web/source/settings/components/form/combobox.jsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/web/source/settings/components/form/combobox.jsx b/web/source/settings/components/form/combobox.jsx
index 6ab235ed3..d21a8c3f3 100644
--- a/web/source/settings/components/form/combobox.jsx
+++ b/web/source/settings/components/form/combobox.jsx
@@ -20,11 +20,15 @@
const { useComboboxState } = require("ariakit/combobox");
-module.exports = function useComboBoxInput({name, Name}, {validator} = {}) {
- const state = useComboboxState({ gutter: 0, sameWidth: true });
+module.exports = function useComboBoxInput({name, Name}, {validator, defaultValue} = {}) {
+ const state = useComboboxState({
+ defaultValue,
+ gutter: 0,
+ sameWidth: true
+ });
function reset() {
- state.value = "";
+ state.setValue("");
}
return [