-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A-Input组件不设置placeholder,但是会显示另一个B-Input组件的placeholder值 #764
Comments
提供一份 input 使用的 demo 吧,单独看 issue 中的描述,无法得知应该如何复现 |
删掉这两行代码应该能解决这个问题,但是没看懂为什么在 Input 组件中修改 locale 的配置,猜测可能有其他需求用到这个特性,需要官方人员看看 nutui-react/src/packages/input/input.taro.tsx Line 180 in dd08848
nutui-react/src/packages/input/input.tsx Line 180 in dd08848
|
协助补充了一个复现的 demo: 或者在任意的 taro 项目中添加以下代码: import { Input } from "@nutui/nutui-react-taro";
export default () => {
return (
<>
<Input
name="number"
label="银行卡"
placeholder="银行卡"
defaultValue={''}
inputAlign="right"
type="digit"
maxlength={18}
/>
<Input
name="tel"
labelWidth="120"
label="银行卡预留手机号"
placeholder=""
defaultValue={''}
inputAlign="right"
type="tel"
border={false}
/>
</>
);
};
|
NutUI scenes(nutui 场景)
H5(@nutui/nutui-react)
NutUI-react version(nutui-react 版本)
1.4.9
React version(react 版本)
18.2.0
Operating environment(运行环境)
dev:h5
Citation method(引用方式)
npm
Node version(node 版本)
16.18.1
Browser and its version(浏览器及其版本)
Chrome(106.0.5249.119)
System and its version(系统及其版本)
window11
What is expected?(期望的结果是什么?)
Input组件不设置placeholder,应不显示
What is actually happening?(实际的结果是什么?)
Input组件不设置placeholder,显示了另一个Input的placeholder值
The text was updated successfully, but these errors were encountered: