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

DatePickerRange : Date is not cleared with clearable=True #594

Closed
Sandy-T opened this issue Aug 6, 2019 · 1 comment
Closed

DatePickerRange : Date is not cleared with clearable=True #594

Sandy-T opened this issue Aug 6, 2019 · 1 comment
Assignees
Labels
dash-type-bug Something isn't working as intended size: 2
Milestone

Comments

@Sandy-T
Copy link

Sandy-T commented Aug 6, 2019

dash 1.1.0
dash-core-components 1.1.0

@byronz byronz added the dash-type-bug Something isn't working as intended label Aug 6, 2019
@byronz byronz added this to the Dash v1.2.0 milestone Aug 6, 2019
@byronz
Copy link
Contributor

byronz commented Aug 6, 2019

reproduced with the following code, the root cause was the x button only clears the state, but not the props.

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


app = dash.Dash(__name__)

app.layout = html.Div([dcc.DatePickerRange(id="date", clearable=True)])

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

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: 2
Projects
None yet
Development

No branches or pull requests

3 participants