Open
Description
- I'm submitting a ...
- bug report
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
When validation is enabled and if we redirect user after successful validation to new page an error occurs in https://github.com/vue-generators/vue-form-generator/blob/v3/src/formGroup.vue#L164
this.$refs.group.querySelector
sayingTypeError: Cannot read property 'querySelector' of undefined
.
Most probably this happens because $ref
is destroyed before $nextTick
callback is triggered.
- If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
I would prepare fiddle but I haven't managed to get v3 working there.
-
What is the expected behavior?
To destroy form normally without any errors -
Please tell us about your environment:
- Version: [3.0.0-beta.7]
- Browser: [all ]
- Language: [all]