While render our input components using v-if condition, then console error is produced. This issue is not occurred in the Button component and while placing the same component on condition rendering. So, we need to check and fix the issue for all our components in the Vue platform.
Replication procedure:
- Please find the issue reproducing sample.
- Click the toggle button to render another input component twice.
- See the console. You can see the error like "Cannot read property insertBefore of null".
Actual output: console error "Cannot read property of insertBefore of null" is produced and component and rendered.
Expected output: No console error will be thrown and component needs to render correctly.
Issue reproducing sample: