plotly / dash-daq

Control components for Dash
MIT License
141 stars 40 forks source link

Client side Validation bug with BooleanSwitch #118

Closed ned2 closed 3 years ago

ned2 commented 4 years ago

When using daq.BooleanSwitch() in a callback, I see the bellow browser console error. The component functions as expected, but have not tested whether persistence works for the component.

Warning: Failed prop type: Invalid prop `persisted_props[0]` of value `on` supplied to `t`, expected one of ["value"].

If I set persisted_props to ["on"] to try and workaround, then I get the following console error:

Warning: Failed prop type: Invalid prop `persisted_props[0]` of value `value` supplied to `t`, expected one of ["on"].

Disabling persistence by setting persisted_props to [] does however remove the error from the console.

emptynonsens commented 4 months ago

I would like to reopen this issue for newest dash_daq 0.5.0 version and dash 2.17.1, when using persistence with booleanSwitch:

Warning: Failed prop type: Invalid prop persisted_props[0] of value on supplied to t, expected one of ["value"]

Persistence works as intended but the warning occurs