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
If the model is not predefined, is there a way to save empty ng-tags-input as array?
Here's the demo showing that ng-tags-input leaves model as undefined.
I also tried to reset the value in onbeforesave, but it didn't work.
In my case, the model is build dynamically based an other models, so it is not possible to initialize the model as empty array. So I'm trying to find a easy way to give it a default value.
Currently I check and reset the model in save method of the form.
The text was updated successfully, but these errors were encountered:
@ckosloski So firstly should xeditable inputs save to model regardless the input text/value is empty or not? I mean do you consider this behavior a defect or it is by design?
Currently I reset the model in save method, I was expecting the ng-tags-input do it implictly.
If the model is not predefined, is there a way to save empty ng-tags-input as array?
Here's the demo showing that ng-tags-input leaves model as undefined.
I also tried to reset the value in
onbeforesave
, but it didn't work.In my case, the model is build dynamically based an other models, so it is not possible to initialize the model as empty array. So I'm trying to find a easy way to give it a default value.
Currently I check and reset the model in
save
method of the form.The text was updated successfully, but these errors were encountered: