Replies: 4 comments
-
possible to get eyes on this? @pablo-abc |
Beta Was this translation helpful? Give feedback.
-
a simpler question here would be... what actually happens when |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm really sorry for the delay! (These past few months have been chaotic for me. Moving to another country and job 😅)
So in this case, with the current behaviour, you'd have to manually call whatever you want after calling |
Beta Was this translation helpful? Give feedback.
-
Hey @pablo-abc thanks for the reply and no worries i've been there! And that's a bummer :/ Thought i found a clever solution around masking/unmasking values (if i had that last missing piece of detecting setField events resolved). Manually calling whatever works but would make it hard to abstract these hybrid inputs into their own components without hacky/custom workarounds. I will try to go back to the drawing board and think of something else. |
Beta Was this translation helpful? Give feedback.
-
Is there a way for me to detect
setFields
event from the input itself? From the code, it seems likesetFields
just callssetControlValue
form helper method (https://github.com/pablo-abc/felte/blob/main/packages/common/src/utils/domUtils.ts#L197) which just sets the value.It would be nice if we can also have the option to have the event bubble up to the input itself so I can manually synchronise relevant data.
Use case is with
iMask
where I am handling it by a visible "mask" input element, and a hidden raw/unmasked input thats updated manually. Currently it only works one way via user input, but I want it to work the other way of programatically setting.Beta Was this translation helpful? Give feedback.
All reactions