Set textfield value after datapicker changing

Good afternoon.

I’m trying to programatically set a textfield value on a datapicker change event. When i set:

textfield.setValue(null);

On my screen i can’t change the textfield value anymore. Every time i try to put a value in that field, after e i leave the focus on that field, the same becomes empty automatically.

What i need to do to clear these field on the controller?

I fixed this issue changing the event to subscribe on a entity picker change event instead of data container.

Tks!