ant-design/ant-design

Input.Password component doesn't get initial value from Form on SSR (Next.js)

Ouverte

#33 185 ouverte le 7 déc. 2021

 (4 commentaires) (0 réaction) (0 personne assignée)TypeScript (54 612 forks)batch import
Inactivehelp wanted🐛 Bug

Métriques du dépôt

Stars
 (98 031 étoiles)
Métriques de merge PR
 (Merge moyen 3j 4h) (248 PRs mergées en 30 j)

Description

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

open Next.js application

  1. Create Form component and set initial values
  2. In Form.Item Create Input.Password component and set name as in initial value

What is expected?

Input.Password component should get initial value and show it in input

What is actually happening?

It doesn't shows initial value, only after focusing it updates value

Environment Info
antd 4.17.2
React 17.0.2
System MacOS 11.1
Browser Google Chrome 96.0.4664.55

Guide contributeur