fix normal user phone edit control

This commit is contained in:
Gucheng Wang
2023-02-25 11:47:34 +08:00
parent 8fbd5b1a74
commit d104a292e7
3 changed files with 25 additions and 43 deletions

View File

@ -19,7 +19,7 @@ import React from "react";
const {Option} = Select;
export default function PhoneNumberInput(props) {
const {onChange, style, showSearch} = props;
const {onChange, style, disabled, showSearch} = props;
const value = props.value ?? "CN";
const countryCodes = props.countryCodes ?? [];
@ -31,6 +31,7 @@ export default function PhoneNumberInput(props) {
<Select
virtual={false}
style={style}
disabled={disabled}
value={value}
dropdownMatchSelectWidth={false}
optionLabelProp={"label"}