diff --git a/src/components/colorpicker/ColorPicker.vue b/src/components/colorpicker/ColorPicker.vue index ef44cbc90..5e2be2f84 100755 --- a/src/components/colorpicker/ColorPicker.vue +++ b/src/components/colorpicker/ColorPicker.vue @@ -559,12 +559,6 @@ export default { originalEvent: event, target: this.$el }); - }, - appendDisabled() { - return this.appendTo === 'self' || this.inline; - }, - appendTarget() { - return this.appendDisabled ? null : this.appendTo; } }, computed: { @@ -576,6 +570,12 @@ export default { }, pickerClass() { return ['p-colorpicker-panel', this.panelClass, {'p-colorpicker-overlay-panel': !this.inline, 'p-disabled': this.disabled}]; + }, + appendDisabled() { + return this.appendTo === 'self' || this.inline; + }, + appendTarget() { + return this.appendDisabled ? null : this.appendTo; } } }