Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

How can I create a dropdown menu in Ionic?

$
0
0

I have this component which is what I want inside the dropdown menu

<div className="add-resource-dropdown">
      <form onSubmit={handleSubmit(onSubmit)}>
       ...
      </form>
    </div>

This component is inside an IonToolbar component.

When I click to make the dropdown appear, it doesn’t show up on top of the rest.
I thought it could be z-index or something of sorts, but even when I set that it still stays behind. Only when I take it out of the toolbar component does it show.

1

This is the html structure with the dropdown.

I read that I can use ion popover, but I just wanted to know if I can do my custom dropdown or why it’s not possible.

Thanks :slight_smile:

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>