Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.ui-form-explain无法满足动态化要求 #89

Open
wonderbeyond opened this issue Nov 14, 2014 · 1 comment
Open

.ui-form-explain无法满足动态化要求 #89

wonderbeyond opened this issue Nov 14, 2014 · 1 comment

Comments

@wonderbeyond
Copy link

.ui-form-explain 在 addItem 后通过 _saveExplainMessage 备份到元素的 data-explain 上面,
以后在隐藏校验错误消息, 切换展示成原始消息时就从 data-explain 取,.

这样搞的话, 在原始的 .ui-form-explain 上面绑定的事件都搞丢了, 动态切换校验规则的时候 .ui-form-explain 的内容也要改变, 而通过data api备份html内容的做法让我无法追踪到稳定的.ui-form-explain元素.

@wonderbeyond
Copy link
Author

简单来说, 就是特定情况下, explain提示需要变.
简单看了代码, 想不出好的解决办法.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant