mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Reset column menu on every click, closes #2289
This commit is contained in:
parent
6ec0081f5d
commit
57c1ce0e8b
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ const initDatasetteTable = function (manager) {
|
|||
function onTableHeaderClick(ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
menu.innerHTML = DROPDOWN_HTML;
|
||||
var th = ev.target;
|
||||
while (th.nodeName != "TH") {
|
||||
th = th.parentNode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue