Jquery ui-sortable - unable to drop tr in empty tbody

前端 未结 9 689
后悔当初
后悔当初 2021-02-01 19:43

I have two connected tbody elements allowing me to drag rows between two tables. Everything works fine until all rows are removed from either table.

When all rows have

9条回答
  •  耶瑟儿~
    2021-02-01 19:52

    Easy solution (PURE CSS):

    tbody:after {
        content:" ";
        height:30px;
    }
    

    Where the blank space is not a stardard blank space. It's an invisible blank character like the following: Invisible characters - ASCII

    Worked for me in FF and Chrome.

提交回复
热议问题