htmlstreamofficial / preline

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
https://preline.co
Other
4.61k stars 289 forks source link

Switching screen size causes error #397

Closed daninus14 closed 3 months ago

daninus14 commented 3 months ago

Switching screen size causes an error

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at autoCloseResizeFn (preline.js?v=6be11204:2538:36)
    at preline.js?v=6be11204:2562:3

Steps to reproduce:

  1. Open a view
  2. resize the screen (with chrome or firefox) to mobile from desktop sized or vice versa

Any ideas on how to approach this?

jahaganiev commented 3 months ago

Hey @daninus14 - on which Preline's live page you're see that?

daninus14 commented 3 months ago

I saw it on my own local app.

jajabo commented 2 months ago

I have the same problem when resizing the screen,

TypeError: Cannot read properties of undefined (reading 'length') node_modules/@preline/overlay/index.js (17:10220) version 2.4.1

截圖 2024-07-29 下午4 37 36 any suggestions

daninus14 commented 2 months ago

I started removing the preline js plugins and implementing them on my own on react or using adobe's react aria package and all the errors are gone...

jajabo commented 2 months ago

I started removing the preline js plugins and implementing them on my own on react or using adobe's react aria package and all the errors are gone...

How to implement it? Is there any information that I can refer to?

daninus14 commented 2 months ago

google