Variables not updated #4303
Replies: 2 comments
-
There should be no differences. As I mentioned in Discord, my simplest guess is that the modal thing you're using actually copies the modal elements to somewhere else on the page. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's hard as heck to find the way around that french package, it's architected horribly. but I think here: https://github.com/GouvernementFR/dsfr/blob/main/src/core/script/api/modules/stage/stage.js it does move elements around in the tree. which likely pulls them out of the alpine context |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue with data update in Django template table
Problem Description
I have a Django view that renders a template with a table of data. I've noticed an unusual behavior when updating the data:
.fr-modal-office
, theagent
data is not updated in the display (it remains as "PIERROR")..entity-agents-panel
, theagent
data is correctly displayed and updated.Additional Details
agent
data is correctly fetched, as when I useconsole.log(this.agent)
, the data is properly updated.Question
Why is there a difference in behavior between the rows of the tables? How can I ensure that the
agent
data is correctly updated and displayed from the row click onwards?Relevant Code
Could you please share the relevant parts of your code? This might include:
Here's a snippet of the main component of my template:
A picture of the JS console showing the fetched data :

A picture of the modal showing the fake agent data (that should be the fetched data):

Beta Was this translation helpful? Give feedback.
All reactions