From 665d902fd72ef4fffb273502b6f010a94a47e15b Mon Sep 17 00:00:00 2001 From: f0x52 Date: Fri, 25 Nov 2022 15:49:48 +0100 Subject: [feature/frogend] modify local emoji (#1143) * update danger button red * emoji category and image modification * debug bundles in dev * fix linting error --- web/source/settings/components/form/combobox.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'web/source/settings/components/form/combobox.jsx') 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 [ -- cgit v1.2.3