-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement disable on click for menu item (#6815)
* feat: implement disable on click for menu item * fix: defer setting disabled * test: add unit tests for controller * test: fix test class * fix: check if element is there on disableonclick init and cleanup * test: fix button tests * Update vaadin-flow-components-shared-parent/vaadin-flow-components-base/src/main/java/com/vaadin/flow/component/shared/internal/DisableOnClickController.java Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com> * Update vaadin-flow-components-shared-parent/vaadin-flow-components-base/src/main/java/com/vaadin/flow/component/shared/internal/DisableOnClickController.java Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com> * Update vaadin-flow-components-shared-parent/vaadin-flow-components-base/src/main/java/com/vaadin/flow/component/shared/internal/DisableOnClickController.java Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com> * refactor: update disable on click init logic and add tests * refactor: rename and return early when initializing * test: reuse elements and simplify disabled asseertion --------- Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
- Loading branch information
1 parent
6551f2e
commit 8b00ed7
Showing
14 changed files
with
794 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
...rent/vaadin-button-flow/src/main/resources/META-INF/resources/frontend/buttonFunctions.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.