kopia lustrzana https://github.com/simonw/datasette
Reset column menu on every click, closes #2289
rodzic
6ec0081f5d
commit
57c1ce0e8b
|
@ -88,6 +88,7 @@ const initDatasetteTable = function (manager) {
|
||||||
function onTableHeaderClick(ev) {
|
function onTableHeaderClick(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
|
menu.innerHTML = DROPDOWN_HTML;
|
||||||
var th = ev.target;
|
var th = ev.target;
|
||||||
while (th.nodeName != "TH") {
|
while (th.nodeName != "TH") {
|
||||||
th = th.parentNode;
|
th = th.parentNode;
|
||||||
|
|
Ładowanie…
Reference in New Issue