Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

SelectCellEditor doesn't trigger an edited event in its model #660

Open
Togden013 opened this issue Nov 21, 2016 · 0 comments
Open

SelectCellEditor doesn't trigger an edited event in its model #660

Togden013 opened this issue Nov 21, 2016 · 0 comments

Comments

@Togden013
Copy link

Current version shows

In /lib/Backgrid.js 1403 to 1506 (omitting fluff)

var SelectCellEditor = Backgrid.SelectCellEditor = CellEditor.extend({

events: {
    "change": "save",
    "blur": "close",
    "keydown": "close"
  }

save: function (e) {
    var model = this.model;
    var column = this.column;
    model.set(column.get("name"), this.formatter.toRaw(this.$el.val(), model));
  }

Other CellEditors.save pass e to a command object, which is then passed to a model trigger call. This one doesn't and when I add that in on my local versh, it fixes the issue from my perspective.

I hope this is helpful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant