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/features/comp
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
..
ComboMarkdownEditor.ts Add some handy markdown editor features (#32400) 4 months ago
ConfirmModal.ts Convert frontend code to typescript (#31559) 8 months ago
EasyMDEToolbarActions.ts Convert frontend code to typescript (#31559) 8 months ago
EditorMarkdown.test.ts Add some handy markdown editor features (#32400) 4 months ago
EditorMarkdown.ts Add some handy markdown editor features (#32400) 4 months ago
EditorUpload.test.ts Convert frontend code to typescript (#31559) 8 months ago
EditorUpload.ts Add some handy markdown editor features (#32400) 4 months ago
LabelEdit.ts Convert frontend code to typescript (#31559) 8 months ago
QuickSubmit.ts Correctly query the primary button in a form (#32438) 4 months ago
ReactionSelector.ts Convert frontend code to typescript (#31559) 8 months ago
SearchUserBox.ts Add `DISABLE_ORGANIZATIONS_PAGE` and `DISABLE_CODE_PAGE` settings for explore pages and fix an issue related to user search (#32288) 4 months ago
TextExpander.ts Fix suggestions for issues (#32380) 4 months ago
WebHookEditor.ts Convert frontend code to typescript (#31559) 8 months ago