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

[BUG] Internet Explorer dcc.Input with type='numeric' #627

Closed
@pfbuxton

Description

@pfbuxton

Hello,

The following example works in Chrome, firefox, new Edge (not old Edge), and not at all in Internet Explorer.

Note - if the input type is changed to 'text' then the issue is not present.
Also, this is a fairly recent regression - less than 1 month old.

Nothing happens when numbers are changed. Also, if you query what is inside 'my-id', you will find None

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

external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']

app = dash.Dash(__name__, external_stylesheets=external_stylesheets)

app.layout = html.Div([
    dcc.Input(id='my-id', value='', type='number'),
    html.Div(id='my-div')
])


@app.callback(
    Output(component_id='my-div', component_property='children'),
    [Input(component_id='my-id', component_property='value'), Input(component_id='my-id', component_property='n_submit')]
)
def update_output_div(input_value,submit):
    print(input_value)
    return 'You\'ve entered "{}"'.format(input_value)


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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions