summaryrefslogtreecommitdiff
path: root/wwwroot
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-06-11 01:12:21 +1000
committerJake Mannens <jake@asger.xyz>2026-06-15 10:39:35 +1000
commit4224c87a5b195f582f62a2770d949885678e66ae (patch)
tree6f262f8f89bfaf40a2a209227562863a8eff0e25 /wwwroot
parentc4e48970b8727a0ce9fe6602fc91ca990c5b2437 (diff)
Added button.js for new Razor Button componentwasm-server
Diffstat (limited to 'wwwroot')
-rw-r--r--wwwroot/js/button.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/wwwroot/js/button.js b/wwwroot/js/button.js
new file mode 100644
index 0000000..f5d32f5
--- /dev/null
+++ b/wwwroot/js/button.js
@@ -0,0 +1,6 @@
+function triggerButtonError(e) {
+ e.classList.remove('error')
+ void e.offsetWidth;
+ e.classList.add('error')
+ void e.offsetWidth;
+}