Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap-table-editable success callback not working as expected #5715

Open
OzzieIsaacs opened this issue May 2, 2021 · 0 comments
Open
Labels
Bug Issues which are marked as Bug

Comments

@OzzieIsaacs
Copy link

Bootstraptable version(s) affected:
Tested with bootstrap-table version 1.8.12 using the bootstrap-table-editable plugin (version 1.5.1)
I opened the issue here because I think I found the reason in bootstrap-table-editable.js file and I didn't find the file in the x-editable repository.

Description
After editing a table field I send the data via editable-url to my server (e.g. a comma separated lists), the server does some modification on the send data (purpose: strip spaces from beginning and end and removes duplicate entries in the list) and sends the changed data back to the client. I'm using the success callback option editable plugin is offering. The problem now is, after modifying the data according to the example given in the manual (http://vitalets.github.io/x-editable/docs.html#editable) the displayed value after hitting the submit button isn't changed.

Example
https://live.bootstrap-table.com/code/OzzieIsaacs/7583
The editor isn't working there?
You need to provide a valid data-editable-url for reproducing it (I don't know where to get one from your test server)

Possible (optional)
I think the problem is here:

var submitValue = _ref2.submitValue;

The line should be:
var submitValue = _ref2.newValue;
(newValue is the Value returned from the server, and identical to submitValue if there is no success callback)
I would have changed it by myself, but I didn't find this piece of code in the src tree

Additional context
I checked it with a python flask application running on Linux Mint 21. I used Firefox browser (current version) to reproduce the problem. To me it looks like a easy to reproduce bug.

I hope I did everything right

@OzzieIsaacs OzzieIsaacs added the Bug Issues which are marked as Bug label May 2, 2021
@OzzieIsaacs OzzieIsaacs changed the title Bootstrap-table-editable success callback Bootstrap-table-editable success callback not working as expected May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug
Projects
None yet
Development

No branches or pull requests

1 participant