phoenix_live_view 1.2.0-rc.1 → 1.2.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -262,7 +262,7 @@ Hooks.InfiniteScroll = {
262
262
  updated() {
263
263
  // Check if the scroll container still exists
264
264
  // https://github.com/phoenixframework/phoenix_live_view/issues/4169.
265
- if (!this.scrollContainer.isConnected) {
265
+ if (this.scrollContainer && !this.scrollContainer.isConnected) {
266
266
  this.destroyed();
267
267
  this.mounted();
268
268
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix_live_view",
3
- "version": "1.2.0-rc.1",
3
+ "version": "1.2.0-rc.2",
4
4
  "description": "The Phoenix LiveView JavaScript client.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1461,7 +1461,7 @@ Hooks.InfiniteScroll = {
1461
1461
  }
1462
1462
  },
1463
1463
  updated() {
1464
- if (!this.scrollContainer.isConnected) {
1464
+ if (this.scrollContainer && !this.scrollContainer.isConnected) {
1465
1465
  this.destroyed();
1466
1466
  this.mounted();
1467
1467
  }
@@ -5987,7 +5987,7 @@ var LiveSocket = class {
5987
5987
  }
5988
5988
  // public
5989
5989
  version() {
5990
- return "1.2.0-rc.1";
5990
+ return "1.2.0-rc.2";
5991
5991
  }
5992
5992
  isProfileEnabled() {
5993
5993
  return this.sessionStorage.getItem(PHX_LV_PROFILE) === "true";