question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropdown in <td> doesn't work

See original GitHub issue

I have a dropdown-button inside a <td> and the <ul> element right beneath it. When clicking or hovering on the button, the list does not appear. It seems that the button still gets the class active as if it was open but the menu is not visible.

I am using the example straight from http://materializecss.com/dropdown.html but within a table cell.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
RadouaneRoufidcommented, Jul 3, 2018

a workaround :

<td style="position: absolute">
    <a materialize="dropdown" class='dropdown-button'
       data-constrainWidth="false" data-belowOrigin="true"
       [attr.data-activates]="'id">
        <i class="material-icons" title="actions">more_vert</i>
    </a>

    <ul [id]="'id" class='dropdown-content'>
        <li>
            <a >Voir le profil</a>
        </li>

</td>
0reactions
jshstercommented, Apr 19, 2022

Entonces no hubo ninguna solución a esto?

Can you provide a JSFiddle that highlights the issue you are experiencing? One of the other things that wasn’t mentioned above (I think) is the use of the coverTrigger property on the drop down. If you have coverTrigger set to false it will appear above or below the trigger button (eg. on the second row as described above). If you can provide a JSFiddle then hopefully we can point you in the right direction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<td> doesn't work with <select> - Stack Overflow
I'm having a weird problem. Here's my code :- <table> <tr> <td>Ports to ...
Read more >
<td>: The Table Data Cell element - HTML - MDN Web Docs
The HTML element defines a cell of a table that contains data. It participates in the table model.
Read more >
Cant click on drop down arrow - Microsoft Community Hub
HI, I am using Excel 2010 and I have created a data validation cell based on list of values from a set of...
Read more >
Drop Down Menus will not work - Adobe Support Community
I'm inon a Mac running OS Monterey 12.4, with InDesign 17.3. I cannot get my drop down menus to work, at one point...
Read more >
Line-by-line: advanced CSS tricks for click-to-open drop-down ...
The combobox class is for a combo box · The dropdown class is for menus and combo boxes that drop down when the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found