Blizzard changed how the
OnClick script works for
SecureActionButtons in Dragon Flight. You need to register both up and down events through
Button:RegisterForClicks() for it to work. Which one the handler uses is based on the user's
ActionButtonUseKeyDown CVar setting.