Datenrangepicker editable looses focus on input control

Hi Dear Webix Team,
If i configure an daterangepicker with property “editable”: true, then the input control looses focus when popup opens.
Can there be anything done so that the popup only opens when the icon is being clicked?

Thanks,
Michael

Hello @Mimu1988,

To do that, you can use the on_click property to detect clicks on nested elements by using their class names - including on the icon. In the click handler, you can set a temporary flag. Then, attach an onBeforeShow event handler to the daterangepicker’s popup - and check whether the flag is set. If it is - abort opening the popup.

Here is an implementation example: Code Snippet

Hello @Jahor,
Thanks for the solution.
Anyways it would be nice to have this as an standard feature for future releases :wink: