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
The project I'm working on is experiencing this warning. It doesn't seem to cause any actual problem except clogging up the console with warnings that don't contribute any useful information.
Preconditions:
A select field with a default value
This could potentially be a problem in formio.js.
If I am understanding correctly, rendering this Formio component results in a call to createForm inside of formio.js's formio.form.js. This code looks like the following:
I think this.render() indirectly results in a call to setValue on the Select which is fine the first time since no value is selected yet. However in the callback for render there is also a call to this.setSubmission(this._submission) which also indirectly results in a call to setValue which is trying to set the selected value to something that was already selected when rendering which results in this warning showing up.
Any suggestions what the cleanest way to fix this could be? Is there anything else I should be checking?
The text was updated successfully, but these errors were encountered:
The project I'm working on is experiencing this warning. It doesn't seem to cause any actual problem except clogging up the console with warnings that don't contribute any useful information.
Preconditions:
This could potentially be a problem in formio.js.
If I am understanding correctly, rendering this
Formio
component results in a call tocreateForm
inside of formio.js's formio.form.js. This code looks like the following:I think
this.render()
indirectly results in a call to setValue on the Select which is fine the first time since no value is selected yet. However in the callback for render there is also a call tothis.setSubmission(this._submission)
which also indirectly results in a call to setValue which is trying to set the selected value to something that was already selected when rendering which results in this warning showing up.Any suggestions what the cleanest way to fix this could be? Is there anything else I should be checking?
The text was updated successfully, but these errors were encountered: