#Th3FalleN

1 messages · Page 1 of 1 (latest)

hybrid lanceBOT
ancient hawk
#

Unfortunately there's not an event for when an element is complete

raven saddle
#

bah

ancient hawk
#

Change is the closest you can get

raven saddle
#

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 dead

ancient hawk
#

Recommend having a submit button so the customer can submit their details when they're ready (instead of automatically)

raven saddle
#

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.

ancient hawk
#

You should still get a change event though if they change something, right?

raven saddle
#

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?