Mask and Enter clears the input

If i use pattern:{mask:“####/##”} for a text-input and skip to this field and hit ENTER, the field will be cleared. without pattern the content remains the same if i hit ENTER. How can i suppres this behaviour?
thank you
Roman

Hello ObiWanKenobi,
I tried to reproduce the issue in different browsers (Chrome, Firefox and Edge) but everything works as expected:
Please check the snippet with example: Code Snippet
In order to help you could you please tell information about:

  1. browser and its version where the issue appears
  2. version of webix you use
  3. do you have any event handlers (keypress, blur, onchange, enter) that could possibly interfere with the mask?
    Also it would be nice if you provide an example with the issue

Hello,
Your snippet has the same error! Pleas try follow steps

  • jump (with tab) into the second text-field and type anything
  • jump back with tab into the first text-field und press ENTER → you will lost the data.

Yes, I reproduced this issue. In fact this is a bug, thank you for reporting. The fix will be available in one of the nearest updates. And for now as workaround I can suggest you to listen to the event "keydown" and attach the event handler to these inputs with the help of webix.event. And then you can use webix.html.preventEvent(e); with { capture: true } that helps to catch the event earlier then the internal event handlers of the library.
Please check this example: Code Snippet

thank you!
have a nice day