sidebar collapse event to close the popup menu?

Hello, I’m using sidebar and using ’ ’ to let the sidebar set as collapsed on mobile device, after click the menu, iframe will load page but the popup menu from collapse sidebar still show. Is there a way to close the popup after click the menu or any other option, thank. (I know that after focus on any space on the screen the popup will automatically close but in mobile device the menu alone already used up all of the screen, so it will be better if it will close automatically after click)