qualiture/ui5-validator

The state remain when we use it with worklist or master-detail pages

Opened this issue · 1 comments

mjza commented

When I use this class with master-details applications if I set the valuestate of one element to error, and then return it back to a None.
Then visit another object and go back to the previous object, then I will see the Error state again on that object.

It seems it has a problem with bound items

Hi,

There is a workaround for that.
Value states and Message Manager messages can be cleared by calling the following methods. This cleanup can be called each time when navigating to/from the view containing form.

validator.clearValueState();
sap.ui.getCore().getMessageManager().removeAllMessages();

Regards,
Vlad