This commit is contained in:
2025-10-02 21:42:43 +08:00
parent 33f436ea77
commit c1f03950e0

View File

@@ -236,7 +236,9 @@ const Withdrawal: React.FC = () => {
}
}
const handlePopupClick = (e) => {
e.stopPropagation();
e.preventDefault()
e.stopPropagation()
e.nativeEvent.stopImmediatePropagation()
inputRef.current!.focus();
};
return (
@@ -245,7 +247,7 @@ const Withdrawal: React.FC = () => {
<Text className="title-text"></Text>
<View className="input-container">
<Text className="symbol">¥</Text>
<Input type="digit" placeholder="0.00" cursorColor="#000" adjustPosition={false} value={inputValue} onInput={handleInput} />
<Input type="digit" placeholder="0.00" cursorColor="#000" value={inputValue} onInput={handleInput} />
{
!showTips && (Number(inputValue) !== 0) && (
<Button className="btn" onClick={handleWithdraw}></Button>
@@ -308,7 +310,7 @@ const Withdrawal: React.FC = () => {
))
}
</View>
<Input holdKeyboard={true} ref={inputRef} focus={isFocus} type="number" adjustPosition={false} style={{ width: "0", height: "0", opacity: "0" }} value={password.filter(item => item !== "").join("")} maxlength={6} onInput={handlePasswordInput} />
<Input holdKeyboard={true} ref={inputRef} focus={isFocus} type="number" adjustPosition={false} style={{ width: "0", height: "0", opacity: "0" }} value={password.filter(item => item !== "").join("")} maxlength={6} onInput={handlePasswordInput} onBlur={() => {set_show_withdraw_popup(false)}} />
</View>
</CommonPopup>
</View >