summaryrefslogtreecommitdiff
path: root/wwwroot/js
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-06-11 01:12:21 +1000
committerJake Mannens <jake@asger.xyz>2026-06-16 23:32:07 +1000
commit48044fb9452ab20ab9683ebb4243615e748a13a3 (patch)
treed9c1b46e161bca73e0c34059385817448a074ca7 /wwwroot/js
parent0b7de1eedce055bebe62d0e944018de1e9c7f3c2 (diff)
Added button.js for new Razor Button componentwasm-server
Diffstat (limited to 'wwwroot/js')
-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;
+}