Change Value from dbc.Input on Window Message

Hi there,

I have a dash python app where I want to change the value of an dbc.Input element inside of an event handler.
I’va added the eventhandler on the javascript side like:

window.addEventListener('message', event => {
var my_input = document.getElementById('my-input');
my_input.value =;
}, false)

The dbc.Input element gets the value which I’ve assigned (shown in the form), but when used inside of a callback the value is still undefined.

Are there any suggestions on how to make the value visible to the callback?

best regards and thanks for your time