ui: optional ul element after select input

This commit is contained in:
panda authored and GitHub committed 2022-06-29 11:04:10 +08:00
1 parent d8a45d5323
commit 9870703581
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.38.1", "version": "4.38.2",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",
@@ -195,7 +195,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
</div> </div>
`)); `));
} else { } else {
if ($(e).next()[0].tagName !== 'UL') { if ($(e).next()[0]?.tagName !== 'UL') {
cnt--; cnt--;
return; return;
} }