Skip to content

Ember 3.9 DEPRECATION: Using this.$() in a component has been deprecated, consider using this.element [deprecation id: ember-views.curly-components.jquery-element] #249

Open
@arun-prasad-r

Description

@arun-prasad-r

I've recently upgraded to ember 3.9 and I get a ton of this deprecation warning in the console.

DEPRECATION: Using this.$() in a component has been deprecated, consider using this.element [deprecation id: ember-views.curly-components.jquery-element]

In my case the error came from using semantic ui dropdown component. The error originates from the semantic base mixin. (mixins/base.js)

// /assets/addon-tree-output/semantic-ui-ember/mixins/base.js
    getSemanticScope() {
      if (Ember.isPresent(this.get('onElement'))) {
        return this.$(this.get('onElement'));
      }
      return this.$(); //<-- Error
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions