Skip to content

Commit 8148b05

Browse files
authored
fix(preset): Fix qsa warning on preset modal (@Leonabcd123) (monkeytypegame#7277)
### Description Use a more specific selector.
1 parent eb92e1a commit 8148b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/modals/edit-preset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function show(action: string, id?: string, name?: string): void {
4848
$("#editPresetModal .modal .text").addClass("hidden");
4949
addCheckBoxes();
5050
presetNameEl ??= new ValidatedHtmlInputElement(
51-
qsr("#editPresetModal .modal input"),
51+
qsr("#editPresetModal .modal input[type=text]"),
5252
{
5353
schema: PresetNameSchema,
5454
},

0 commit comments

Comments
 (0)