-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CustomModal): do not prevent default behavior of click inside modal
* fix(CustomModal): do not prevent default behavior of click inside modal By blinldy preventing default behavior on click, basic html elements like the anchor, in which the click is left to be the default one, stop working. Remove the prevention of the default behaviour from the custom modal, and leave the external user in charge of preventing what needs to be prevented. * test: add jest-fail-on-console to make test fail on console errors * test(Modal, CustomModal): test default behaviour for anchor tag * refactor(Modal,CustomModal): merge implementation of modals and remove timers Since the implementation of the modal is the same, use a CustomModal also to render a standard Modal, in order to remove the duplicated code and prevent differences in the two components. Remove the timers where possible Use the containerWindow body of the container window if provided refs: CDS-102 (#218)
- Loading branch information
Showing
9 changed files
with
309 additions
and
295 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.