ember-sortable icon indicating copy to clipboard operation
ember-sortable copied to clipboard

Modifiers: using this.args is deprecated

Open edflips opened this issue 2 years ago • 3 comments

Describe the bug We are seeing multiple deprecation warnings running:

  • ember-sortable 2.2.3
  • Ember 4.4.0
  • ember-modifier 3.2.7
using this.args is deprecated. Access positional and named arguments directly in the modify hook instead. [deprecation id: ember-modifier.no-args-property] This will be removed in Ember 4.0.0.

To Reproduce Steps to reproduce the behavior:

  1. Install the above packages
  2. Implement a sortable list
  3. Observe the modifier warnings

Expected behavior No warnings

edflips avatar Jul 13 '22 12:07 edflips

Does the same happen with ember-sortable v4?

NullVoxPopuli avatar Jul 13 '22 12:07 NullVoxPopuli

@NullVoxPopuli I just installed v4 in my Ember 4.6 project and I'm seeing the modifier deprecation warnings.

barryofguilder avatar Aug 05 '22 23:08 barryofguilder

makes sense -- I don't think anyone has submitted a PR to clean those up

NullVoxPopuli avatar Aug 08 '22 21:08 NullVoxPopuli

I have caught this deprecation too.

[email protected] [email protected]

Look like #487 should resolve this issue.

kaermorchen avatar Sep 10 '22 15:09 kaermorchen