fix dynamic chips

This commit is contained in:
dni ⚡ 2024-10-10 16:06:24 +02:00
parent 182c5a21e0
commit 56ffd3a95d
No known key found for this signature in database
GPG Key ID: D1F416F29AD26E87
3 changed files with 11 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -450,7 +450,7 @@ window.app.component('lnbits-dynamic-chips', {
if (!this.chip) return
this.chips.push(this.chip)
this.chip = ''
this.modelValue = this.chips.join(',')
this.$emit('update:model-value', this.chips.join(','))
},
removeChip(index) {
this.chips.splice(index, 1)

View File

@ -393,7 +393,7 @@
></q-input>
<div v-else-if="o.type === 'chips'">
<lnbits-dynamic-chips
:model-value="formData[o.name]"
v-model="formData[o.name]"
@update:model-value="handleValueChanged"
></lnbits-dynamic-chips>
</div>
@ -489,7 +489,14 @@
<template id="lnbits-qrcode">
<div class="qrcode__wrapper">
<qrcode-vue :value="value" level="Q" render-as="svg" margin="1" size="350" class="rounded-borders"></qrcode-vue>
<qrcode-vue
:value="value"
level="Q"
render-as="svg"
margin="1"
size="350"
class="rounded-borders"
></qrcode-vue>
<img class="qrcode__image" :src="logo" alt="qrcode icon" />
</div>
</template>