Using redux-form I'm losing focus after typing the first character

后端 未结 7 681
甜味超标
甜味超标 2020-12-24 12:40

I\'m using redux-form and on blur validation. After I type the first character into an input element, it loses focus and I have to click in it again to continue

7条回答
  •  清酒与你
    2020-12-24 13:13

    This can also happen if you have defined styled-components inside your render function. You should define them outside your class. Like this:

    const Row = styled.div`
        justify-content:center;
    `;
    const Card = styled.div`
        width:18rem;
        padding:1rem;
     `;
     class Login extends Component{
    

提交回复
热议问题