✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Maxlength not working on Input

I’m trying to set the maxlength property on a Dash Input but whatever value I assign there it still doesn’t lock the number of input characters.

Am I doing wrong?

                    dcc.Input(
                        id='name-input',
                        placeholder='(name)...',
                        maxlength=32,
                        type='text',
                        style={
                            'margin': '0px 0px 0px 15px',
                            'width': '20%'
                        }
                    ),
1 Like