Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Table Row editor

plegault pro asked 6 years ago


You show 2 examples on the page. When I add a row to either one it adds 2 rows.


plegault pro commented 6 years ago

The above issue is with the included html examples.

I tried the code on the page and it does not work.


Piotr Glejzer staff answered 6 years ago


Hi,

we are very sorry about that bug. We noticed that bug. We will try to fix as soon as possible. For now, I have some workaround for that.

You have to move function 'addNewRowsAndDraw()' (line 341) after $.mdbEditorRow (line between 355-356), it can't be available in that function ($.mdbEditorRow).

Next step is copy and remove this on('click') function 'addNewRows...' (line 160) from 'function bindEvents()'.

Next step is paste copied on('click') function above moved 'function addNewRows..' and change variable $buttonWrapper to $('.buttonWrapper') in on('click') function. It should work.

If you have a question let me know.

Best,

Piotr



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: Other
  • MDB Version: -
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No