Topic: Table Editor input type select options not saving

jim-ti free asked 8 months ago


Expected behavior

When selecting a new value, the new value will be passed to the update listener.

Actual behavior

The original value is passed. the newly selected value is ignored.

Resources (screenshots, code snippets etc.)

You can see it on your own docs here:

https://mdbootstrap.com/docs/standard/plugins/table-editor/#section-inputs

referencing the addEventListener('update.mdb.tableEditor', (e) => {


Kamila Pieńkowska staff answered 8 months ago


If you want to retrive temporary value from input in edit mode you need to listen to 'edit.mdb.tableEditor' event.


titleinsight priority commented 8 months ago

still isn't working. I'm referencing PRO 7.1 --> mdb.umd.min.js and table-editor.min.js scripts. The update and edit events will both show any edited text values but won't reflect a new option selection from an inputType select column.

I can get it to work if I reference an older 1.0 script and use the 'updateEntry.mdb.tableEditor' event (which appears to no longer exist).


Kamila Pieńkowska staff commented 8 months ago

If you won't to access updated values you should listen to edit event.

https://mdbootstrap.com/snippets/standard/kpienkowska/6004079



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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 7.1.0
  • Device: PC
  • Browser: Chrome (latest)
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes