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:
Alexander Guth 2019-04-01 11:41:04 +08:00 committed by Luke Towers
parent 2e0d2d3888
commit abb0b16b0f
1 changed files with 1 additions and 0 deletions

View File

@ -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)