FIX: disable highlighting when no value set on select-box
This commit is contained in:
parent
21c4e38eec
commit
dcc5f93344
|
@ -65,6 +65,10 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
shouldHighlightRow: function() {
|
shouldHighlightRow: function() {
|
||||||
return (rowComponent) => {
|
return (rowComponent) => {
|
||||||
|
if (Ember.isNone(this.get("value"))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const id = this._castInteger(rowComponent.get(`content.${this.get("idKey")}`));
|
const id = this._castInteger(rowComponent.get(`content.${this.get("idKey")}`));
|
||||||
if (Ember.isNone(this.get("lastHovered"))) {
|
if (Ember.isNone(this.get("lastHovered"))) {
|
||||||
return id === this.get("value");
|
return id === this.get("value");
|
||||||
|
|
Loading…
Reference in New Issue