trophy 0
May 2025 209 posts
Sandbox.UI.Button : api/Sandbox.UI.Button
trophy 315
Jul 2023 38 posts
K3rhos 9 months ago edited 9 months ago
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.