mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
Fix bug where editing color did not update it in scales
This commit is contained in:
@@ -92,7 +92,7 @@ export default {
|
||||
default: [],
|
||||
},
|
||||
},
|
||||
emits: ['update:modelValue', 'update:color', 'update:roles', 'delete'],
|
||||
emits: ['update:modelValue', 'update:roles', 'delete'],
|
||||
data() {
|
||||
let uid = this.modelValue.uid ?? maxUid++;
|
||||
if (this.modelValue.uid) {
|
||||
@@ -222,8 +222,8 @@ export default {
|
||||
|
||||
nextTick().then(() => {
|
||||
if (this.colorRaw) {
|
||||
this.color = this.colorRaw;
|
||||
this.$refs.input.setCustomValidity('');
|
||||
this.$emit('update:color', this.colorRaw);
|
||||
} else {
|
||||
this.$refs.input.setCustomValidity('Invalid color');
|
||||
this.$refs.input.reportValidity();
|
||||
|
||||
Reference in New Issue
Block a user