Skip to content

Bootstrap-table with bootstrap 4 and x-editable removes editable attributes #3705

@hepabolu

Description

@hepabolu

I'm trying to build a sortable table with inline editing using Bootstrap 4, jQuery 3.3.1, bootstrap-table1.12.1 and x-editable 1.5.1 (or the latest from the dev branch I could download).

I load the data using PHP and Twig, from the server. The list is long, i.e. many rows of data.
I managed to get the table sortable, but when I added x-editable, it seems the data-attributes are removed and the javascript is not called to make the table editable.

I've managed to reproduce the problem on jsfiddle.

I hope someone can help.

UPDATE: clicking around in the jsFiddle, I noticed that some of the fields are actually editable, but only in the first row, not the second.

UPDATE2: turns out there was an error in the data attributes. There is no 'data-type="checkbox"'. Once I changed that to checklist, the second row worked as well. I have updated the jsFiddle.

Only thing I need now is figure out how to make the checklists work.

UPDATE3: turns out the inline editing is lost when the table is filtered by using the search field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editableIssues for the editable extension.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions