Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix github issue #291
  • Loading branch information
adriano-di-giovanni committed Jan 4, 2014
commit 56b987c8b186dfb4542ca7229e81c2861bdd5712
5 changes: 4 additions & 1 deletion src/editors/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ Form.editors.Select = Form.editors.Base.extend({
},

setValue: function(value) {
this.$el.val(value);
var
val = (value instanceof Backbone.Model) ? value.id : value;

this.$el.val(val);
},

focus: function() {
Expand Down