-
I'm using filepond, and I have a custom "labelIdle" that has an x-ref. Something like this: <div
wire:ignore
x-data="{ pond : null }"
x-init="
pond = FilePond.create($refs.input, {
labelIdle: `
<span x-ref='label'>Drag and Drop or Select a Jpeg or Png Image</span>
`,
})
"
x-on:image-changed.window="
if (! $event.detail.src)
$refs.label.text = $event.detail.src
"
> But $refs doesn't have |
Beta Was this translation helpful? Give feedback.
Answered by
SimoTod
Nov 6, 2021
Replies: 1 comment 12 replies
-
Where is your x-ref="label"? Also refs are dom element, I don't think they have a text property |
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
mokhosh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where is your x-ref="label"? Also refs are dom element, I don't think they have a text property