You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js
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>
4 months ago
..
components Fix a number of typescript issues (#32308) 4 months ago
features Correctly query the primary button in a form (#32438) 4 months ago
markup Update mermaid to v11 (#31913) 6 months ago
modules Add some handy markdown editor features (#32400) 4 months ago
render Fix a number of Typescript issues (#31877) 6 months ago
standalone Fix a number of Typescript issues (#31877) 6 months ago
utils Correctly query the primary button in a form (#32438) 4 months ago
vendor Fix a number of typescript issues (#32308) 4 months ago
webcomponents Fix a number of typescript issues (#32308) 4 months ago
bootstrap.test.ts Convert frontend code to typescript (#31559) 8 months ago
bootstrap.ts Add types to fetch,toast,bootstrap,svg (#31627) 7 months ago
globals.d.ts Move web globals to `web_src/js/globals.d.ts` (#31943) 6 months ago
globals.ts Convert frontend code to typescript (#31559) 8 months ago
htmx.ts Fix a number of Typescript issues (#31877) 6 months ago
index.ts Fix milestone deadline and date related problems (#32339) 4 months ago
svg.test.ts Fix a number of Typescript issues (#31877) 6 months ago
svg.ts Fix suggestions for issues (#32380) 4 months ago
types.ts Fix suggestions for issues (#32380) 4 months ago
utils.test.ts Fix suggestions for issues (#32380) 4 months ago
utils.ts Fix suggestions for issues (#32380) 4 months ago
vitest.setup.ts Fix a number of Typescript issues (#31877) 6 months ago