DTedit icon indicating copy to clipboard operation
DTedit copied to clipboard

filter = 'top' breaks edit modal in "multiple datatables and reactive input choices" example

Open FGL-Linear opened this issue 1 year ago • 0 comments

When trying to use the following datatable.call in my own app the edit modal stops working properly:

datatable.call = function(...) {
      DT::datatable(..., filter = "top")
    }

I modified the example app from DTedit::dteditmod_demo() to see if the same happened. I modified the datatable.call at line 97 by adding the same ,filter = "top" and got the same result.

Surprisingly, I didn't get this problem when modifying the minimal DTedit example 'dteditmod' from ?dtedit.

I'm not sure if this is a known problem or if I'm simply using DTedit wrong. I tried reading the documentation at RPubs and googling/Stackoverflow but didn't find an answer.

EDIT to add more details about what breaks:

The modal buttons don't do anything and some elements of the UI change too. The "Authors" and "Publisher" inputs look different and the "publication date" input doesn't populate. The following screenshots show the UI with and without the filters:

Without filters (original code) normal

With filters broken

FGL-Linear avatar Mar 13 '23 10:03 FGL-Linear