Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Modal] A modal couldnt be closed a second time it was opened by another modal #512

Merged

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Feb 22, 2019

Description

If a modal opens another modal using onDeny callback, the onDeny method of that modal works only one time and it never works again which means the modal cannot be closed.

Testcase

  • Click the button to open Modal 1.
  • Inside Modal 1, click the button to open Modal 2.
  • Close Modal 2, which will re-open Modal 1 again.
  • Click again the button in Modal 1 to open Modal 2 again.
  • Try to close Modal 2 again now and ...

Broken

... it cannot be closed.
https://jsfiddle.net/1qo9nkre/

Fixed

... it closes again as expected
https://jsfiddle.net/0m1pukaw/

Closes

#511
Semantic-Org/Semantic-UI#6069

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews labels Feb 22, 2019
@lubber-de lubber-de added this to the 2.7.x milestone Feb 22, 2019
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@y0hami y0hami merged commit ff454ad into fomantic:develop Feb 25, 2019
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Feb 25, 2019
@lubber-de lubber-de modified the milestones: 2.7.x, 2.7.3 Feb 25, 2019
@y0hami y0hami mentioned this pull request Apr 1, 2019
@lubber-de lubber-de deleted the fix/511/submodal_ignorerepeatedevents branch April 2, 2019 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript tag/sui-issue Taken from an existing Issue/PR of SUI type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants