-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: Issues with Modal and Image Cropper position #5367
Changes from 4 commits
a9805f1
7afde0a
0833e7d
1a68049
b17fc08
6c5946c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,12 +7,13 @@ import { isTesting } from 'open-event-frontend/utils/testing'; | |||||
|
||||||
export default UiModal.extend({ | ||||||
tagName : 'div', | ||||||
classNames : ['centered-modal'], | ||||||
classNameBindings : ['isFullScreen:fullscreen', 'isSmall:small', 'isLarge:large'], | ||||||
|
||||||
openObserver: observer('isOpen', function() { | ||||||
const $element = $(this.element); | ||||||
if (this.isOpen) { | ||||||
$element.modal('show'); | ||||||
$element.modal({...this.defaultOptions}).modal('show'); | ||||||
} else { | ||||||
$element.modal('hide'); | ||||||
} | ||||||
|
@@ -46,8 +47,8 @@ export default UiModal.extend({ | |||||
willInitSemantic(settings) { | ||||||
this._super(...arguments); | ||||||
|
||||||
const defaultOptions = { | ||||||
detachable : false, | ||||||
this.defaultOptions = { | ||||||
centered : false, | ||||||
duration : isTesting ? 0 : 200, | ||||||
dimmerSettings : { | ||||||
dimmerName : `${this.elementId}-modal-dimmer`, | ||||||
|
@@ -85,13 +86,13 @@ export default UiModal.extend({ | |||||
} | ||||||
}; | ||||||
|
||||||
const options = this.options ? merge(defaultOptions, this.options) : defaultOptions; | ||||||
const options = this.options ? merge(this.defaultOptions, this.options) : this.defaultOptions; | ||||||
assign(settings, options); | ||||||
}, | ||||||
|
||||||
didInitSemantic() { | ||||||
if (this.isOpen) { | ||||||
$(this.element).modal('show'); | ||||||
$(this.element).modal({...this.defaultOptions}).modal('show'); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
} | ||||||
} | ||||||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<i class="black close icon"></i> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is already a closable icon in the modal I believe? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @iamareebjamal not present earlier. please see #4505 |
||
<div class="header"> | ||
{{t 'Add tax information'}} | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.