#Th3FalleN
1 messages · Page 1 of 1 (latest)
Unfortunately there's not an event for when an element is complete
bah
Change is the closest you can get
okay, i was hoping for a clean way to check in once place if a user had filled out any elements, if so confirm their setupIntent if not dont
but i'll track that via state with a change handler
bah! providing default values marks it as complete 
Recommend having a submit button so the customer can submit their details when they're ready (instead of automatically)
we have that, but this is what we show if we already have information for them... https://p181.p1.n0.cdn.getcloudapp.com/items/OAu2vWEm/d649932a-d811-454d-bfa3-01a6bd8e8b10.jpg?v=031d8f3bf54c1fe3edf777ba322918b7
and when they hit the pencil icon it expands and shows the prefilled stripe elements. i was trying to find a sane way to detect if they edited it and actually changed something.
You should still get a change event though if they change something, right?
yes, but the issue is when i mount the element with the defaultValues it fires a change event just the same
with no way to tell it was not triggered by the user
i guess i could not render the elements at all unless they hit the edit button but then i have to have logic to make it hide them instead of unmounting them. because i assume if they unmount the context gets lost?