summaryrefslogtreecommitdiff
path: root/web/source/settings/components/form/inputs.tsx
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-08-21 10:43:43 +0200
committerLibravatar GitHub <noreply@github.com>2024-08-21 10:43:43 +0200
commitffcf6e73f731894d5d278e6fff1fc055b367f1fe (patch)
tree5845b5aded718276613b374ec93a05a2c1bebf3d /web/source/settings/components/form/inputs.tsx
parent[bugfix/frontend] Fix error on submitting domain perm with enter key (#3218) (diff)
downloadgotosocial-ffcf6e73f731894d5d278e6fff1fc055b367f1fe.tar.xz
[bugfix/frontend] Small safari + gnome web fixes (#3219)
* [bugfix/frontend] Small safari + gnome web fixes * wee * update comment
Diffstat (limited to 'web/source/settings/components/form/inputs.tsx')
-rw-r--r--web/source/settings/components/form/inputs.tsx28
1 files changed, 15 insertions, 13 deletions
diff --git a/web/source/settings/components/form/inputs.tsx b/web/source/settings/components/form/inputs.tsx
index e6c530b53..06075ea87 100644
--- a/web/source/settings/components/form/inputs.tsx
+++ b/web/source/settings/components/form/inputs.tsx
@@ -170,19 +170,21 @@ export function Select({
<label>
{label}
{children}
- <select
- onChange={(e: React.ChangeEvent<HTMLSelectElement>) => {
- onChange(e);
- if (onChangeCallback !== undefined) {
- onChangeCallback(e.target.value);
- }
- }}
- value={value}
- ref={ref as RefObject<HTMLSelectElement>}
- {...props}
- >
- {options}
- </select>
+ <div className="select-wrapper">
+ <select
+ onChange={(e: React.ChangeEvent<HTMLSelectElement>) => {
+ onChange(e);
+ if (onChangeCallback !== undefined) {
+ onChangeCallback(e.target.value);
+ }
+ }}
+ value={value}
+ ref={ref as RefObject<HTMLSelectElement>}
+ {...props}
+ >
+ {options}
+ </select>
+ </div>
</label>
</div>
);