Skip to content

BuyWidget: Chain/Token Selector Causes Widget to Go Blank on Mobile Portrait (iOS Safari/Chrome) #8382

@BESCLLC

Description

@BESCLLC

When using the BuyWidget in a React app, the chain/token selector works on desktop and mobile landscape, but in mobile portrait mode (tested on multiple iPhone models in Safari and Chrome), tapping the selector causes the widget to flash briefly and then go completely blank. The main widget loads fine; only the selector triggers this issue. No console errors appear, but I see repeated hasLostFocus V1/V2 events in the logs.

Steps to Reproduce:

Go to https://moneyxpro.com/#/buyfiat on an iPhone (Safari or Chrome) in portrait mode.
Tap the chain/token selector.
Observe: The selector flashes, then the widget goes blank.
Rotating to landscape restores functionality; switching between device sizes in dev tools sometimes temporarily fixes it until refresh.
Tested Devices/Browsers:

iPhone 12, 14, 14 Pro Max (Safari, Chrome)
Chrome/Safari mobile emulation in dev tools
What I’ve Tried:

Wrapping widget in containers with various CSS (minHeight, overflow, etc.)
Ensuring correct viewport meta tag
Testing different widget sizes and themes
No success with any override
Additional Info:

No errors in console, only repeated hasLostFocus V1/V2 events
Issue only occurs in portrait mode
Video of the issue: [attach your video or link here]
Expected Behavior:
The selector should open and allow chain/token selection in mobile portrait, as it does in landscape and on desktop.

Widget Version:

thirdweb v5 (latest as of Nov 2025)
Code Sample:

import React, { useEffect, useState } from "react";
import { BuyWidget, darkTheme, useActiveAccount } from "thirdweb/react";
import { createThirdwebClient } from "thirdweb";
const client = createThirdwebClient({
clientId: "6e9d898f6bae315a1b8ea5120b9ac6b5",
});
export default function BuyFiat() {
const [mounted, setMounted] = useState(false);
const account = useActiveAccount();
useEffect(() => {
setMounted(true);
}, []);
if (!mounted) return null;
return (
<BuyWidget
client={client}
theme={darkTheme()}
// ...other props
/>
);
}

References:

BuyWidget Docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions