Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Apr 13, 2020

Summary

Make the data object a regular object again.

The change in gh-4603 made the object returned by elem.data() a prototype-less
object. That's a desired change to support keys colliding with Object.prototype
properties but it's also a breaking change so it has to wait for jQuery 4.0.0.

A 3.x-only test was added to avoid breaking it in the future on this branch.

Fixes gh-4665
Ref gh-4603

-1 byte

Checklist

The change in jquerygh-4603 made the object returned by `elem.data()` a prototype-less
object. That's a desired change to support keys colliding with Object.prototype
properties but it's also a breaking change so it has to wait for jQuery 4.0.0.

A 3.x-only test was added to avoid breaking it in the future on this branch.

Fixes jquerygh-4665
Ref jquerygh-4603
@mgol mgol added this to the 3.5.1 milestone Apr 13, 2020
@mgol mgol self-assigned this Apr 13, 2020
@mgol mgol added Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Apr 13, 2020
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@skerbis
Copy link

skerbis commented Apr 13, 2020

LGTM2

@NicolasCARPi
Copy link

Dear @mgol,

I can confirm that this fix addresses an issue I was having with data-toggle='collapse' with Bootstrap v4.4.0 and jQuery 3.5.0.

Hoping a fix can be released (relatively) quickly :)

Cheers,
~Nico

NicolasCARPi added a commit to elabftw/elabftw that referenced this pull request Apr 16, 2020
alee added a commit to comses/comses.net that referenced this pull request Apr 16, 2020
jquery 3.5.0 has a regression with bootstrap collapse (among others)

pinning to ~3.4.1 (to allow minor patch releases) until

jquery/jquery#4666

is merged + released
yaroslavmo pushed a commit to dreamfactorysoftware/df-admin-app that referenced this pull request Apr 20, 2020
- The issue refers to jquery 3.5.0
- After jquery/jquery#4666 is merged we can go back to using latest jquery
volodymyrpoli pushed a commit to dreamfactorysoftware/df-admin-app that referenced this pull request Apr 20, 2020
- The issue refers to jquery 3.5.0
- After jquery/jquery#4666 is merged we can go back to using latest jquery
@mgol mgol merged commit 65e9098 into jquery:3.x-stable Apr 20, 2020
@mgol mgol deleted the 3.x-data-object branch April 20, 2020 16:11
@mgol mgol removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Apr 20, 2020
@AttitudeL
Copy link

@mgol Thanks for fixing this issue! BTW is there a plan to include this fix into the next release and is there an Estimated release date yet? Thanks.

@mgol
Copy link
Member Author

mgol commented Apr 20, 2020

@AttitudeL The fix will be included in 3.5.1. We’ll try to get the release out soon. That mostly depends on our available time, though, so I cannot provide any specific date.

fetus-hina added a commit to fetus-hina/stat.ink that referenced this pull request May 1, 2020
jQuery 3.5.0 と Bootstrap 3 の組み合わせでは、次の問題により
アコーディオンが動作しない:

  jquery/jquery#4665

この問題を修正する Pull Request は merge されたものの、 3.5.1
は現時点ではリリースされていない。

  jquery/jquery#4666

この commit では jQuery 3.5.0 に当該パッチを当てることで、
3.5.1 を待たず jQuery のバージョンアップを行う。
(3.5.0 ではセキュリティフィックスが入っているので一応早めに上げたい)
hwelsters pushed a commit to hwelsters/comses.net that referenced this pull request May 10, 2023
jquery 3.5.0 has a regression with bootstrap collapse (among others)

pinning to ~3.4.1 (to allow minor patch releases) until

jquery/jquery#4666

is merged + released
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

6 participants