stripe / react-connect-js

React components for Connect.js and Connect embedded components
https://stripe.com/docs/connect/get-started-connect-embedded-components
MIT License
20 stars 8 forks source link

ConnectPaymentDetails does not support visible prop #69

Open ljrahn opened 7 months ago

ljrahn commented 7 months ago

I see in your examples, and even in the documentation, you pass a visible prop, but the component doesn't accept it. Even if I try to wrap a piece of state around the component, toggle visibility using some onClick handler, then set the state to false using the onClose handler provided by the ConnectPaymentDetails component, the payment details popup doesn't disappear. ie. I don't see any way to close the component once its open.

image