#edgar-addresselement-react

1 messages · Page 1 of 1 (latest)

heavy elmBOT
covert turret
#

edgar-addresselement-react

#

@wispy viper I'm not sure I follow what you are trying to achive. Can you provide a runnable example with the issue?

wispy viper
#

yes, sorry for the delay

#

so i hve a checkout page that has:

  • payment element
  • express checkout
  • address element
  • link auth element
    right now, we are ab testing the best way to show these elements ie. just the payment element and address, or the 4 of them but in a diferent order
#

so the way its being handled right now is that all 4 elemtns are mounted regardless of the ab test, it just hides/shows them with css

#

everything works fine except for the address element, sometimes we cant provide an initial value and the element is hidden, so when the user clicks "submit" the address is validated and throws an error

#

and what im trying to achieve without unmounting the element alltogether, is to disable this validation

covert turret
#

Gotcha, let me ask my team as I don't see a way to do this

wispy viper
#

thanks!

covert turret
#

@wispy viper yeah there isn't a "disabled" option or similar. So for now the best option is to not mount it when you don't plan to render it I think