mdbootstrap / material-design-for-bootstrap

Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
https://mdbootstrap.com/docs/standard/
MIT License
9.35k stars 1.15k forks source link

Editing buttons of sortable table disappear #220

Closed vanBrakel closed 5 years ago

vanBrakel commented 5 years ago

The issue appears with the table editor, sortable rows example on the mdb documentation website:

https://mdbootstrap.com/plugins/jquery/table-editor/#extended-rows

Expected behavior

Editing buttons for other rows should not disappear/ be disabled after editing a row

Actual behavior

Editing buttons for other rows disappear/ are disabled after editing a row

Your working environment and MDB version information

I'm using the mdb documentation website here , which runs MDB v4.7.3 see source

Resources (screenshots, code snippets etc.)

The gif speaks for itself:

gif screen capture of the issue

pglejzer commented 5 years ago

Thanks for your topic, its bug, we will fix that as soon as possible. Have a nice day.

pglejzer commented 5 years ago

I fixed this. If you want fix this at the moment you have to go to your mdb-editor js file and chagne function saveRowClickRemoveDiv for this -->

    saveRowClickRemoveDiv = function () {

      $(this).find('.div-to-remove').remove()
    },

we will fix that globally in next release.

vanBrakel commented 5 years ago

That's what I call quick support. Awesome, thanks!