daniegarcia254
daniegarcia254

Reputation: 1197

Avoid ionic side menu from close when click on it

I'm developing with Ionic Framework an app where the main view is a map (working with Leaflet). And in the side menu, there are some forms in order to allow differente searches on the map (shortest path between 2 points...).

The thing is, every time I click in one of the inputs (text, checkbox...) of the forms, the side menu closes.

Is there anyway to avoid that? It is possible that the side menu only closes and shows when I tap in the 'burguer' button?

Upvotes: 2

Views: 1925

Answers (1)

daniegarcia254
daniegarcia254

Reputation: 1197

It's as simple as remove the 'close-menu' class from all the 'ion-item' elements inside the ion-side-menu

Upvotes: 3

Related Questions