3
0

Fix duplicate color picker saveColor method

This commit is contained in:
Jože Fortun 2024-11-19 12:56:49 +01:00
parent 1ca4a81cbd
commit 5a4eb64c2e

View File

@ -48,7 +48,10 @@
/>
</svg>
</b-button>
<span v-if="showText" class="ml-2">
<span
v-if="showText"
class="ml-2"
>
{{ value }}
</span>
</div>
@ -147,16 +150,17 @@ export default {
translations: {
type: Object,
default: () => ({}),
},
width: {
type: String,
default: "32px",
default: '32px',
},
height: {
type: String,
default: "32px",
default: '32px',
},
showText: {
@ -166,7 +170,7 @@ export default {
themeSettings: {
type: Array,
default: [],
default: () => [],
},
themeVariables: {
@ -205,7 +209,7 @@ export default {
label: 'Extra light',
},
],
}
},
},
data () {
@ -259,11 +263,6 @@ export default {
}
},
saveColor () {
this.$emit('input', this.currentColor || this.value)
this.closeMenu()
},
openMenu () {
this.showModal = true
},