Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Input component property "maxlength" does not work #505

Closed
mtwichan opened this issue Apr 1, 2019 · 3 comments
Closed

Input component property "maxlength" does not work #505

mtwichan opened this issue Apr 1, 2019 · 3 comments
Assignees
Labels
dash-type-bug Something isn't working as intended size: 0.5
Milestone

Comments

@mtwichan
Copy link

mtwichan commented Apr 1, 2019

When using the maxlength property with the input component, nothing happens. The feature does not work. I've tested maxlength with both string and an int with no avail. I also tried setting type=text and that didn't work either.

This was tested with dash-core-components==0.45.0.

@mtwichan
Copy link
Author

mtwichan commented Apr 1, 2019

Test code:

import dash
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html


app = dash.Dash(__name__)

app.layout = html.Div(
    [
        dcc.Input(
            id="test",
            type='text',
            maxlength='10'
        )   
    ],
)


if __name__ == '__main__':
    app.server.run(debug=True)

@alexcjohnson alexcjohnson added the dash-type-bug Something isn't working as intended label Apr 1, 2019
@byronz byronz mentioned this issue Apr 12, 2019
@celinehuang
Copy link

I have replicated the code in the latest version of Dash (dash 1.1.1) and this is no longer an issue @matthewchan15 could you close this issue since I don't have permission ?

@Marc-Andre-Rivet Marc-Andre-Rivet added this to the Dash v1.2.0 milestone Aug 8, 2019
@Marc-Andre-Rivet
Copy link
Contributor

Closing as fixed as per #523 above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dash-type-bug Something isn't working as intended size: 0.5
Projects
None yet
Development

No branches or pull requests

4 participants