After navigate from page1 to page2, if I click on my standalone autocomplete, the app executes the “beforeLeave” event, instead of open the autocomplete.
You saved me! Thank you so much. So, routableModals is set to true by default, and this parameters allow to close the popup like a go back event. For this reason, it activates the “before leave” event?