You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a date time picker built using a custom field (basically the sample from the "old" Flow days). While the normal usage works fine, the custom field has problems, when testbench tries to set values, for instance changing the "date" of the date picker part.
The problem seems to be, that the way how the value is set on the client does not trigger the "change" event (setProperty("value", newValue), which most fields use).
As a workaround I manually dispatch the respective event, but it would be good, that either the testbench element modify the value in a more "user like" way, to that events are fired correctly or the custom field change event should be fired, when the value property of one of its parts is changed.
dispatchEvent("change");
(depending on the solution this issue might be something for the web-components repo issue list)
The text was updated successfully, but these errors were encountered:
If none of the above is doable, the custom field element docs should at least mention this problem and the element should provide a convenience method to fire that event, e.g.
/** * By default, a custom field does not recognize by default, when one of its elements update its value. This method will notify * the server to update its internal "full" value. */publicvoidnotifyValueChange() {
dispatchEvent("change");
}
We have a date time picker built using a custom field (basically the sample from the "old" Flow days). While the normal usage works fine, the custom field has problems, when testbench tries to set values, for instance changing the "date" of the date picker part.
The problem seems to be, that the way how the value is set on the client does not trigger the "change" event (
setProperty("value", newValue)
, which most fields use).As a workaround I manually dispatch the respective event, but it would be good, that either the testbench element modify the value in a more "user like" way, to that events are fired correctly or the custom field change event should be fired, when the value property of one of its parts is changed.
(depending on the solution this issue might be something for the web-components repo issue list)
The text was updated successfully, but these errors were encountered: