Unbind textInput

Hi !

I have an inputText used for differents datas following the user context (selection of the user)

I use ConvergenceInputElementBinder.bindTextInput(textArea, realTimeString); to bind it.

When a user select another data entity i call again bindTextInput to the same input with a different data field.
The problem is the old binding is always here. Si when I modify the field, the old data field is changed to.

Do you have a method to “unbind” a text input ?
Or perhaps, a specific binding should be deleted when an input has a new binding.

What’s you point of you about that ?

Ok I found the solution in the source code.

The bindTextInput methode return an object containing the unbind method

Yep! Also for short things like this, please considering joining our slack channel!

1 Like