fix(preset): Fix qsa warning on preset modal (@Leonabcd123) (#7277)

### Description

Use a more specific selector.
This commit is contained in:
Leonabcd123 2025-12-20 00:40:48 +02:00 committed by GitHub
parent eb92e1af0d
commit 8148b05dd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ export function show(action: string, id?: string, name?: string): void {
$("#editPresetModal .modal .text").addClass("hidden");
addCheckBoxes();
presetNameEl ??= new ValidatedHtmlInputElement(
qsr("#editPresetModal .modal input"),
qsr("#editPresetModal .modal input[type=text]"),
{
schema: PresetNameSchema,
},