Detect changes to an input with changes via JS

Hello @JackWtr,

This is an issue with things existing the DOM vs existing in the React, typically you cannot directly interact with each other.

However, in 2.16.0 a new clientside function was created, this allows direct interaction from JS functions to set props on a dash component.

This new function is called, dash_clienstide.set_props.

To use it, you can do this:

dash_clientside.set_props(id, {propsToSet})

So, for this example, you’d do this:

dash_clientside.set_props(‘invisible-input’, {value: newValue})

Where newValue is the new value you want to set.

3 Likes