You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the template completely before filling it in.
Context
When using version 2.2.1 of Materialize, an error occurs in the browser console after initializing the ScrollSpy component and resizing the window. The specific error is:
Uncaught TypeError: this._handleWindowScroll is not a function
at e. (materialize.min.js:6:93188)
at r (materialize.min.js:6:2677)
Uncaught TypeError: this._handleWindowScroll is not a function
at e. (materialize.min.js:6:93188)
at r (materialize.min.js:6:2520)
This error does not occur in version 2.1.1 of Materialize, suggesting that the issue is related to changes introduced in version 2.2.1.
Current Behavior
An Uncaught TypeError: this._handleWindowScroll is not a function error occurs after initializing the ScrollSpy component and resizing the window.
Expected behavior
The ScrollSpy component should initialize correctly without errors in the browser console when resizing the window.
Possible Solutions or Causes
This issue does not occur in version 2.1.1 of Materialize. It appears to be related to changes introduced in version 2.2.1.
Steps to reproduce
Import version 2.2.1 of Materialize into a project.
Initialize the ScrollSpy component in the DOMContentLoaded event.
Resize the window.
Observe the browser console for the error.
Before submitting...
Context
When using version 2.2.1 of Materialize, an error occurs in the browser console after initializing the ScrollSpy component and resizing the window. The specific error is:
Uncaught TypeError: this._handleWindowScroll is not a function
at e. (materialize.min.js:6:93188)
at r (materialize.min.js:6:2677)
Uncaught TypeError: this._handleWindowScroll is not a function
at e. (materialize.min.js:6:93188)
at r (materialize.min.js:6:2520)
This error does not occur in version 2.1.1 of Materialize, suggesting that the issue is related to changes introduced in version 2.2.1.
Current Behavior
An Uncaught TypeError: this._handleWindowScroll is not a function error occurs after initializing the ScrollSpy component and resizing the window.
Expected behavior
The ScrollSpy component should initialize correctly without errors in the browser console when resizing the window.
Possible Solutions or Causes
This issue does not occur in version 2.1.1 of Materialize. It appears to be related to changes introduced in version 2.2.1.
Steps to reproduce
Import version 2.2.1 of Materialize into a project.
Initialize the ScrollSpy component in the DOMContentLoaded event.
Resize the window.
Observe the browser console for the error.
Example:
<title>ScrollSpy Example</title>Your Environment
The text was updated successfully, but these errors were encountered: