I’m having an issue with a multiline input field that I can’t get my head around. It’s to do with the behaviour when the field is disabled.
My app has an RG that contains ‘Cards’, one field of which is ‘cardContent’. In the example below, I’ve set this to Card 1, Card 2 and Card 3.
When clicked, a popup opens, which shows another view of the card. When the popup opens, the cardContent is shown in a multiline input’s ‘initial content’.
This works fine while the field is not set to be disabled by default. Each card I open has the correct data shown in the multiline input.
As soon as I set the field to be disabled, I get the following behaviour. The first and second cards that I open from the RG are fine. When I open a third card, the multiline content is the content from the previous card I opened. It’s like it’s getting ‘stuck’ somehow.
I narrowed it down to the fault only happening when the field is disabled. To debug, I added another multiline input to the same group, which is not disabled, but which has exactly the same ‘initial content’ (the white section at the bottom of the card):
Result of opening the first card (all good, both fields match):
Result of opening Card 2 (all good again)
Result of opening Card 3 - the disabled multiline input shows the content for Card 2. The non-disabled input shows the correct data for the card (as does everything else on the popup, so it’s defo being passed the correct data when it opens).
Any other card i open after this continues to show the content for card 2.
Is there something I’m not understanding about how disabling fields should work? Seems really odd to me that I can have two fields in the same group, with the same data referenced, but which end up showing different data.