craue / CraueFormFlowBundle

Multi-step forms for your Symfony project.
MIT License
735 stars 118 forks source link

Lost data for a 3-steps flow when pressing back button twice then next button #397

Closed fdiedler closed 2 years ago

fdiedler commented 2 years ago

Hi,

I think there is a bug in the flow. I have 3 steps and the buf appears if :

NB: If I use the allowDynamicStepNavigation option, it works fine.

Does I need to configure something ?

Thanks,

craue commented 2 years ago

That's actually the expected behavior, see #35.

fdiedler commented 2 years ago

@craue I understand the issue if previous step influences the current step. It is not an issue in my flow so maybe put an option to avoid data loss ? (I prefer not using allowDynamicStepNavigation) For user experience, it would be better ;) Thanks,

craue commented 2 years ago

Well, I guess allowDynamicStepNavigation is this option. What's the reason you don't want to use it?

fdiedler commented 2 years ago

@craue Indeed, I found a way to remove links in steps because I don't want to allow users to "jump" over steps. That is why initially I didn't want to use this option. But now, it is okay. Thanks,