yii2-multiple-input
yii2-multiple-input copied to clipboard
Inconsistent input name when one column or multiple columns
Why getElementName in MultipleInputColumn have different behavior when there is only one column? I think input should always have name like in multiple option (buttons[0][text], buttons[1][text]) or there should be param to choose behavior. Currently there is some "magic" there and behavior of widget is inconsistent so developer needs to do some debug to find reason why data is in unexpected format after removing or adding columns.
Anyway it's great extension, thanks.
When i was implementing the prototype of the widget it was reasonable for me to not send data as array with one key in case of one field . Probably we can change such behavior in new major version to avoid breaking BC