You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problems with selectFieldOption when it is dynamic. It's impossible to select a value that is added via JS.
So I'm trying to add it dynamically and then select it, but the thing is that in ->use(function (Crawler $crawler) callback what I modify via crawler is not trully sent as form data.
In symfony/ux#1334 it was suggested to use ChoiceFormField::addChoice($node) but that doesn't work with non-multiple select element. So I though I will do this:
Ok, yeah, this is currently a problem with KernelBrowser. The mink browser kit driver keeps track of the form fields in memory.
I'm fairly certain #77#125 will allow this (or could be added easily). I'm hesitant to pull the trigger on that PR, while it should be BC, I'm worried about edge cases I haven't yet discovered. I'm thinking I might include this PR in a new major version of this package.
I'm having problems with
selectFieldOption
when it is dynamic. It's impossible to select a value that is added via JS.So I'm trying to add it dynamically and then select it, but the thing is that in
->use(function (Crawler $crawler)
callback what I modify via crawler is not trully sent as form data.In symfony/ux#1334 it was suggested to use
ChoiceFormField::addChoice($node)
but that doesn't work with non-multiple select element. So I though I will do this:But probably the crawler does not modify Mink's document? Could we have a helper method to add dynamic values for this case?
The text was updated successfully, but these errors were encountered: