Append the color picker modal to parent element (#4199)
This fixes #4117 Currently, the color picker modal (palette) is appended to the body (default) which makes it unusable in Octobers modals, e.g. for related model forms. This fixes this issue by appending the spectrum div to the parent element. Credit to @alxy
This commit is contained in:
parent
2e0d2d3888
commit
abb0b16b0f
|
|
@ -56,6 +56,7 @@
|
|||
color: this.$customColor.data('hexColor'),
|
||||
chooseText: $.oc.lang.get('colorpicker.choose', 'Ok'),
|
||||
cancelText: '⨯',
|
||||
appendTo: 'parent',
|
||||
hide: function(color) {
|
||||
var hex = color ? color.toHexString() : ''
|
||||
self.$customColorSpan.css('background', hex)
|
||||
|
|
|
|||
Loading…
Reference in New Issue