arendjr/selectivity

Redisplay form after submission. Selected options can't be removed.

Open

#186 创建于 2017年4月5日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (1,103 star) (116 fork)batch import
help wanted

描述

I am trying to use Selectivity.js for a multi-select on a form with several other inputs. Upon submission, when the form is redisplayed (because of validation errors in other fields), I display the previously selected options back by using "selected" in those options.

Now, if I try to remove any of the options I had selected in the previous step and resubmit the form, the removed options continue to be selected. And that is understandable, because clicking the remove icon does not remove it from the element. How can I make the removed items also removed from the element. Or is there another way to accomplish this.

Thanks!

贡献者指南