mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-04 19:17:25 +01:00
merge newui branch
This commit is contained in:
1 parent
58f605e90c
commit
4c44044c0c
804 files changed
+58660
-56663
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// auto open accordions if there is an invalid item
|
||||
document.addEventListener(
|
||||
"invalid",
|
||||
(e) => {
|
||||
const details = e.target.closest("details");
|
||||
if (details && !details.open && !e.target.closest("summary")) {
|
||||
details.open = true;
|
||||
|
||||
// revalidate and show the error message
|
||||
e.target.reportValidity && e.target.reportValidity();
|
||||
}
|
||||
},
|
||||
true,
|
||||
);
|
||||
Reference in new issue
Block a user