Sandbox.UI.Button

Started by Bot · one year ago · 1 reply · 473 views

#1
Bot
Member
JoinedMay 2025 Posts338 Score0
Sandbox.UI.Button : api/Sandbox.UI.Button
edited one year ago#2
K3rhos
Member
JoinedJul 2023 Posts58 Score680
By default Button will have the pointer-events property to none , which mean that no mouse events will get fired.

Make sure to addpointer-events: all; in the SCSS to handle mouse events like onClick in your UI.

Example:

HTML
<Button onclick="@Test">Test Button<Button/>
SCSS
Button
{
    pointer-events: all;
}
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.