mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 06:13:42 +08:00
27f08a5c28
In FormKit you can add error on an existing field existing in the DOM, but you can also set an arbitrary error on a virtual field not existing in the DOM. When revalidating existing data, we are only resetting real fields. This commit adds `removeError(name)` to allow you to manually manage virtual fields. `removeError` is available in the same helpers where `addError` is available. <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. --> |
||
---|---|---|
.. | ||
adapters | ||
components | ||
controllers | ||
helpers | ||
lib | ||
mixins | ||
models | ||
routes | ||
services | ||
templates |