Antd form with initial value

<FormItem span={24}>
{getFieldDecorator("password", {
    rules: [{
        required: true,
        message: "6~30",
        min: 6,
        max: 30,
        pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,30}$/,
    }, {
        validator: this.validateToNextPassword,
    }],
})(
   <Input type="password" placeholder="6~30"/>
)}
</FormItem>


Page just opened. How to solve the problem when there is an initial value in the Input component without operation?

Mar.17,2021

clear the cache and try


add the attribute autocomplete= "off"

 <Input
   type="password"
   placeholder="6~30"  
   autocomplete="off"
 />
Menu