Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.14 needs $.uiBackCompat = true; to use transfer Effect #2278

Closed
melloware opened this issue Aug 8, 2024 · 3 comments · Fixed by #2291
Closed

1.14 needs $.uiBackCompat = true; to use transfer Effect #2278

melloware opened this issue Aug 8, 2024 · 3 comments · Fixed by #2291

Comments

@melloware
Copy link

To use the Transfer effect you have to have $.uiBackCompat = true; and not sure why.

You can see the error on the showcase: https://jqueryui.com/effect/

Pick Transfer and run.

image

@mgol
Copy link
Member

mgol commented Aug 14, 2024

Thanks for the report. See https://api.jqueryui.com/transfer-effect/:

This effect is deprecated, replaced by the .transfer() method.

Trac bug #14749 has more details:

The transfer effect doesn't behave like a normal effect. As such, it should be converted a plugin instead of using the effects API.

We should just remove the effect from the demo, I think:

<option value="transfer">Transfer</option>

And perhaps also its visual test:

$( "#transfer" ).on( "click", function() {
$( this )
.addClass( "current" )
.effect( "transfer", { to: $( "div" ).eq( 0 ) }, 1000, function() {
$( this ).removeClass( "current" );
} );
} );

@mgol mgol added this to the 1.14.1 milestone Aug 14, 2024
@melloware
Copy link
Author

Thanks you i have updated to use .transfer() method!

mgol added a commit to mgol/jquery-ui that referenced this issue Sep 9, 2024
The transfer effect is deprecated and not present unless `$.uiBackCompat` is set
to `true`. In previous UI versions, the default was including the backwards
compat layer so these demos & tests worked; now they do not by default. Just
remove them.

Fixes jquerygh-2278
@mgol
Copy link
Member

mgol commented Sep 9, 2024

PR: #2291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants