Open jerome-dm opened 2 months ago
build() creates the element and is called anytime the field is modified in formBuilder onRender() is called after the element created in build() is added to the DOM (in general case, when testing with Jest it may not be in the DOM yet)
In general usage with formBuilder the custom controls build and onRender functions are called multiple times. With formRender they are only called once during initial render
Description:
When I add an input to the render function or the build function without an event and type words into it, it replaces the formdata value. ps : Can you explain the difference between the
onRender
function and thebuild
function?Environment Details:
Expected Behavior
During input, the formData value should be that of the initial input
Actual Behavior
During input, the formData value is replaced by the appended input
Steps to Reproduce
Add this script
Place a new Text input Fill the comment input Check the formData value
jsfiddle here : https://jsfiddle.net/gh4eqx0u/5/