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 understand that this problem has been already addressed and solved in docs and even in #20405 but in this case I want to use it both as a property or two-way binding and I don't see any solution.
If I use the private property I cannot raise EventCallback when it's changed and @bind-Collapsed won't work
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've got a simple component with a two-way binding parameter, e.g.
but if I use it as a simple property everytime that the state is changed the value is reset to the initial one written inside razor markup.
It is easily reproducible in this fiddle: https://blazorfiddle.com/s/18mp08rq
I understand that this problem has been already addressed and solved in docs and even in #20405 but in this case I want to use it both as a property or two-way binding and I don't see any solution.
If I use the private property I cannot raise EventCallback when it's changed and @bind-Collapsed won't work
Beta Was this translation helpful? Give feedback.
All reactions