fix(event-handlers): commandOverride not working due to incorrect check (@byseif21) (#7330)

it returns null when attribute doesn't exist, not undefined
This commit is contained in:
Seif Soliman 2026-01-08 18:58:01 +02:00 committed by GitHub
parent e2d9b79332
commit 69cc227c87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ const testPage = qs(".pageTest");
testPage?.onChild("click", "#testModesNotice .textButton", async (event) => {
const target = event.childTarget as HTMLElement;
const attr = target?.getAttribute("commands");
if (attr === undefined) return;
if (attr === null) return;
Commandline.show({ subgroupOverride: attr as ConfigKey | ListsObjectKeys });
});