Skip to content

Commit

Permalink
Fixing dropdown when there isn't an element
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbhansen committed Dec 13, 2015
1 parent 92401bd commit a13f53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/ui-dropdown.js
Expand Up @@ -17,7 +17,7 @@ export default Ember.Component.extend(Base, DataAttributes, {

_onChange: function(value, text, $element) {
this._super();
if (value === undefined) {
if (typeof value === "undefined" && $element) {
// The initial set selected doesn't have an value. This is potentially a problem
// within the main Semantic library
//
Expand Down

0 comments on commit a13f53f

Please sign in to comment.