diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 58698e1ad..800e5918f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -4,6 +4,7 @@ **[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)** - **Modal** - Fix autofocus setting in modal not working due to improper selector #2737 +- **Modal** - Increased `close` specificity, modal will now only close on `> .close` #2736 **[Merged PR](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)** diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index 98a6e9d48..4d24a41ce 100644 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -866,7 +866,7 @@ $.fn.modal.settings = { onDeny : function(){ return true; }, selector : { - close : '.close', + close : '> .close', approve : '.actions .positive, .actions .approve, .actions .ok', deny : '.actions .negative, .actions .deny, .actions .cancel', modal : '.ui.modal'