Browse Source

Fixes issue with modal close #2736

Makes selector more specific
pull/2743/head
jlukic 9 years ago
parent
commit
33469d3cf6
2 changed files with 2 additions and 1 deletions
  1. 1
      RELEASE-NOTES.md
  2. 2
      src/definitions/modules/modal.js

1
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)**

2
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'

Loading…
Cancel
Save