kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix(ui): [WIP] #2390 confirm pill edit with comma
rodzic
d8e548ce46
commit
dd4125b5fd
|
@ -20,10 +20,10 @@ onMounted(() => {
|
|||
})
|
||||
|
||||
const sanitize = () =>
|
||||
model.value = model.value?.replace(',', '')?.trim()
|
||||
model.value = (console.log("SANITIZE"), model.value?.replace(',', '')?.trim())
|
||||
|
||||
const sanitizeAndBlur = () =>
|
||||
sanitize() && input.value?.blur()
|
||||
sanitize() || input.value?.blur()
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -49,6 +49,7 @@ const sanitizeAndBlur = () =>
|
|||
ref="input"
|
||||
contenteditable
|
||||
class="pill-content"
|
||||
style="flex-grow: 1; text-align: start;"
|
||||
@keydown.enter.prevent="sanitizeAndBlur"
|
||||
@keyup.space.prevent="sanitizeAndBlur"
|
||||
@keyup.,.prevent="sanitizeAndBlur"
|
||||
|
|
Ładowanie…
Reference in New Issue