FIX: disable highlighting when no value set on select-box

This commit is contained in:
Joffrey JAFFEUX 2017-08-29 14:32:23 +02:00 committed by GitHub
parent 21c4e38eec
commit dcc5f93344
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ export default Ember.Component.extend({
shouldHighlightRow: function() {
return (rowComponent) => {
if (Ember.isNone(this.get("value"))) {
return false;
}
const id = this._castInteger(rowComponent.get(`content.${this.get("idKey")}`));
if (Ember.isNone(this.get("lastHovered"))) {
return id === this.get("value");