Comments (4)
This is fixed in 1.6.4 — thanks for the reproduction 💪
from formkit.
I was able to isolate this and reproduce it. It is a bug.
from formkit.
@justin-schroeder Somehow after this fix my validation stopped working:
- I have a custom validator, that makes the field required when status is 1
- when I click submit validator works. But when I change the status, it makes no difference, error stays
- if I then change the status to unpublished, it works ONLY if I enter something in title and then delete (so it triggers the validation). Somehow status stopped working due to changes in listeners change in the commit.
There are 2 groups with same name, I know, but for a reason (some fields are translatable and get transformed into groups so we can switch and show/hide them). This works perfectly fine for months, form value and all that. Well, so did this rule until 1.6.4 was done.
Is there ANY way I get that node.at actually reacting to status field change? Note that when there are 2 languages there are 2 fields with name status, each in it's own group, that's why the call for $root.translations.en
.
I'd do it without groups but sadly we cannot name elements like translations.es.title
and make it work as object, so this was the only option.
Reproduction: https://formkit.link/eade881392843ffc606cf62a1af24bb4
from formkit.
Hey! Unfortunately that validation rule was only working due to a bug in prior versions that caused rules to run more often than they should. The only reason this doesnt currently work is that there are 2 groups with the same name. Here it is working fine when they are grouped:
https://formkit.link/8c4094cc5c88ba4f880123891f9d17f8
I understand the rational behind why you need that, however groups by the same names just wont work. Alternatively you could directly assign nodes to a group by using the parent
prop.
from formkit.
Related Issues (20)
- Repeater should consistently render when the default slot is empty HOT 1
- Mixed order of identical items in dynamic list
- <FormKit type="mask"> renders <input type="mask"> HOT 3
- datetime-local field with initial value resets itself in firefox after the entry of a 0
- FormKit datepicker component: enter key submits the form and display the calendar popup
- `childRemoved` event not triggered for type list HOT 1
- setting Buddist locale breaks datepicker HOT 2
- Changing `datepicker` value makes it to autofocus on Safari
- Pro Inputs - Potential Memory Leak Issue HOT 1
- blur() doesn't remove focused attributes such as highlighted border and text inputs remain focused.
- icon-click does not trigger on keyboard action
- When using Schema, fields rendered within a `children` slot of a custom component don't have access to `$value.xxx`
- Form nodes not retrievable via getNode() or useFormKitNodeById() after component re-render on locale change.
- Support for extra units for the Unit Input
- Autocomplete input - selected option is not reactive with selection-appearance=text
- tailwind classes not apply on formkit
- Dropdown truncation issues
- Ability to create compound units from the Unit Input
- Datepicker disabled-days + validation removes validation message
- Inconsistent paste behavior in taglist field
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formkit.