#brambilla

1 messages · Page 1 of 1 (latest)

uneven ledgeBOT
tepid rampart
#

Hello! That's interesting. Do you have a link to the page where that's happening so I can take a look?

warm flower
#

Not yet, but I have the code in git

uneven ledgeBOT
tepid rampart
#

Are you using the appearance API?

warm flower
#

Yes

tepid rampart
#

If so does not using it fix the issue?

warm flower
#

No

#

It still not working properly

raven hatch
#

👋 Taking over this thread, catching up now

warm flower
#

src\pages\order\index.jsx

#

Where the payment element is being used

#

And for some reason is just in the mobile view

#

And if you toggle the theme in the side menu the payment element loads correctly then, not squished

#

I also have this log here on the browser that I didn't understood; Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.

raven hatch
#

Where did you use appearance API? I can't find the usage in the code

warm flower
#

I tried to give all the info anything u can ask

#

Stripe folder

#

Index.jsx

#

line 19

raven hatch
#

What do you mean mobile view? Do you mean the issue only occurs on mobile browser or mobile view in desktop browser?

warm flower
#

mobile view in desktop browser

#

Maybe it's the browser?

#

I'm using opera

raven hatch
#

Does it happen if you open it directly on mobile browser?

warm flower
#

Yeah, but I think is the browser cause I opened in chrome now and it's working

#

The way it opens

#

The way it should open

#

(I change the theme so it reloaded the element)

raven hatch
#

I'm confused. When I asked if the issue happens on the mobile browser, the reply was yes, but you also said it's working at the same time. Let's step back a bit. Can you explain whether following environment has this issue?

  1. Mobile view in opera
  2. Mobile view in chrome
  3. Mobile browser directly on chrome
warm flower
#

1

#

Mobile view in opera

raven hatch
#

So 2 and 3 work fine?

warm flower
#

Yes

raven hatch
#

What is the use case that you will use mobile view in Opera to accept payment?

#

Only Opera with version 25+ in normal desktop browser is supported

warm flower
#

Just a second

#

I'm doing a little bit of testing here and I return to u asap

raven hatch
#

Sure!

warm flower
#

Got it. I've made a useEffect to reload, the options when the component is displayed in the mobile view, that solves the problem. But what was actually happening was that my browser is not supported, I said opera but what I'm using is opera GX, probably there is a difference in how they run, sorry for the bothering, but thanks I solved the problem thanks to u

warm flower
#

It's already late night here, thanks for everything, good work