#matthias_01085
1 messages ยท Page 1 of 1 (latest)
Hi there!
Yes screenshots/videos or even better a reproduction link would help better understand the issue.
Before
After 2nd time we mount stripe elements
functionality wise everything works it just looks its disabled the 2nd time
So the Element works even in the second screenshot? Do you see any errors in your browser console? Can you share the code you use to mount the element?
Yes, it works in the 2nd screenshot too. We dont have any errors in the console.
// Add an instance of the stripe elements into the `stripe-elements` <div>
this.$nextTick(() => {
this.stripeElementsPayment.mount('#stripe-elements');
});
},````
๐ Do you have any code that changes the appearance of the element anywhere?
Also, can you share the code where you unmount the element?
Hi, yes we change the appearance: some, variables and rules. Should I provide the code? Its a bit.
We dont really unmount StripeElements. Basically we just remove the DOM Element where stripe was mounted. Is there a function to unmount StripeElements?
I cant provide a specific code for that because we change between different vue components (for every payment option we have an own vue component)
We do have specific function for unmount
https://stripe.com/docs/js/element/other_methods/unmount
I'd recommend using that function instead and see if it makes any difference
Ah nice, I will try that and see if it makes a difference. Thanks ๐
๐
If you disable all the appearence related code, does that change anything?
yes, if I disable every appearance it works. Strange that it works the first time but not the second time.
Strange that it works the first time but not the second time.
Not sure what you mean by that.
its strange that the it works fine when I first mount the element and when I change the payment options as described above and mount stripe a second time then the UI bug happens
But you said that after disabling appearances, it works each time correct?
yes, if I disable every appearance it works
yes, and we also managed to figure out why. It seems to be the fontFamily. We use a custom font face.
{
cssSrc: 'https://www.customer.com/styles/fonts.css',
},
],````
Ah interesting
and in the appearance: ```fontFamily: 'Lato, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif',````
really strange tbh
Yeah not sure, this might need a deeper investigation.
Can you raise a support ticket via
https://support.stripe.com/?contact=true
And provide as much information as you can along with a sample app that can help our team reproduce the issue?
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
okay thanks, I hope I can find the time today to do it. Otherwise it will be tomorrow. Thanks for the help to track down the issue ๐
No worries, happy to help
@chrome vortex fast follow up question: should I use chat or email for support ticket?
Email would be better
okay ๐
chat folks would convert it to email for technical support