Closed thomaskral closed 6 months ago
We found the following existing issues which may help or are related to your topic:
Seems like the docs are outdated, this is a Vue2 to Vue3 migration thing. With 6.6 it should be used something like this:
<sw-text-field
v-model:value="dailyUrl"
class="swag-dailymotion-field"
label="Dailymotion video link"
placeholder="Enter dailymotion link..."
@update:value="onElementUpdate">
</sw-text-field>
thanks for bringing this up, I made an update for the docs :v:
PHP Version
8.3
Shopware Version
6.6.0.2
Expected behaviour
The text field should render the value from the config. When the value gets updated by the user the value should get updated in the config.
Your example from the docs:
index.js
html.twig
Actual behaviour
How to reproduce
Use the examples from your own docs:
https://developer.shopware.com/docs/guides/plugins/plugins/content/cms/add-cms-block.html https://developer.shopware.com/docs/guides/plugins/plugins/content/cms/add-cms-element.html
For text input my current workaround is using the @blur event to trigger
onElementUpdate
. But this is not working for select or radio elements. This makes those elements unusable at the moment.