I am replacing the default textbox so I that I can apply custom styling.
In example #1 below, I use textbox.clone to manually assign customTextBox to both "style" and "color" input fields. Then, when onChange gets called, event.target.id correctly reports either the "style" or "color" id.
However, when I attempt to build the options programatically (see example #2), onChange always gets called with the "color" id, even when it is the "style" input field that is changed. I am creating dynamic forms, so I need to figure out how to get example #2 working properly.
Please let me know if I'm approaching this the wrong way.
I am replacing the default textbox so I that I can apply custom styling.
In example #1 below, I use textbox.clone to manually assign customTextBox to both "style" and "color" input fields. Then, when onChange gets called, event.target.id correctly reports either the "style" or "color" id.
However, when I attempt to build the options programatically (see example #2), onChange always gets called with the "color" id, even when it is the "style" input field that is changed. I am creating dynamic forms, so I need to figure out how to get example #2 working properly.
Please let me know if I'm approaching this the wrong way.
EXAMPLE #1
EXAMPLE #2
Only getOptions has changed...
Environment: