-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic x-data issue #165
Comments
I'm hitting this same issue. |
@opencoca Can you give an example of what deleting or adding data in |
A "refresh" button would be a good workaround for a lot of the "devtools don't update when I do X" issues, I'll create a separate issue for it. |
@opencoca any chance you could share the steps you follow when you hit this issue? |
Not sure if this is the same issue, but I have this example where the extension doesn't update whenever I add/remove/edit any of the fields: <!DOCTYPE html>
<html lang="en">
<head>
<script src="https://unpkg.com/alpinejs" defer></script>
</head>
<body x-data="{}">
<section x-data="{ alternatives: [''] }">
<div>
<form>
<template x-for="(alternative, index) in alternatives">
<div class="flex">
<input type="text" x-model="alternatives[index]">
<button type="button" @click="alternatives.splice(index, 1)" class="btn btn-blue">-</button>
</div>
</template>
<button type="button" @click="alternatives.push('')" class="btn btn-blue self-start">+</button>
</form>
</div>
</section>
</body>
</html> Maybe I'm just doing this in a dumb way? Either way, the extension will only update if I select another element and go back to it. |
alpinejs/alpine#1060
The text was updated successfully, but these errors were encountered: