Skip to content

Commit

Permalink
Fix eventNamespace in #3396
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Feb 20, 2018
1 parent e63201e commit 3827fd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

- **Popup** - Popup can now position elements correctly even when they have a different offset context than their activating element. Like in [this example](https://jsfiddle.net/g853mc03/).

To preserve functionality `movePopup` has remained as `true` (moving the popup to the same offset context), however now setting `movePopup: false` should in all cases position correctly, helping prevent sticky inheritance issues caused by moving the DOM tree around.
To preserve functionality `movePopup` default has remained as `true` (moving the popup to the same offset context), however now setting `movePopup: false` should now always position correctly. Be sure to use `movePopup: true` to avoid issues with `ui popup` inside `menu`, `input` or other places where it may inherit rules from its activating element or its context.

- **Modal** - Modal has been rewritten to use `flexbox`. No need to call `refresh()` to recalculate vertical centering.
- **Modal** - Modals now have a setting `centered` which can be used to disable vertical centering. This can be useful for modals with content that changes dynamically to prevent content from jumping in position.
Expand Down
9 changes: 4 additions & 5 deletions src/definitions/modules/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $.fn.modal = function(parameters) {
defaultSettings = {
debug : settings.debug,
variation : settings.centered
? ''
? false
: 'top aligned'
,
dimmerName : 'modals'
Expand Down Expand Up @@ -515,7 +515,7 @@ $.fn.modal = function(parameters) {
},
clickaway: function() {
$dimmer
.off('click' + elementNamespace)
.off('click' + elementEventNamespace)
;
},
bodyStyle: function() {
Expand Down Expand Up @@ -615,7 +615,7 @@ $.fn.modal = function(parameters) {
},
clickaway: function() {
$dimmer
.on('click' + elementNamespace, module.event.click)
.on('click' + elementEventNamespace, module.event.click)
;
},
dimmerSettings: function() {
Expand All @@ -627,10 +627,9 @@ $.fn.modal = function(parameters) {
defaultSettings = {
debug : settings.debug,
dimmerName : 'modals',
variation : false,
closable : 'auto',
variation : settings.centered
? ''
? false
: 'top aligned'
,
duration : {
Expand Down

0 comments on commit 3827fd0

Please sign in to comment.