gitea/web_src
wxiaoguang b573512312
Correctly query the primary button in a form (#32438)
The "primary button" is used at many places, but sometimes they might
conflict (due to button switch, hidden panel, dropdown menu, etc).

Sometimes we could add a special CSS class for the buttons, but
sometimes not (see the comment of QuickSubmit)

This PR introduces `querySingleVisibleElem` to help to get the correct
primary button (the only visible one), and prevent from querying the
wrong buttons.

Fix #32437

---------

Co-authored-by: silverwind <me@silverwind.io>
2024-11-07 04:21:53 +08:00
..
css Add some handy markdown editor features (#32400) 2024-11-04 10:14:36 +00:00
fomantic Remove fomantic dimmer module (#30723) 2024-04-29 14:49:50 +00:00
js Correctly query the primary button in a form (#32438) 2024-11-07 04:21:53 +08:00
svg Support migration from AWS CodeCommit (#31981) 2024-09-11 07:49:42 +08:00