acidb / mobiscroll

Cross platform UI controls for progressive web and hybrid apps (plain JS, jQuery, Angular and React)
https://mobiscroll.com
Other
1.54k stars 439 forks source link

[Popup] Anchored Popup failing in React 18 strict mode #506

Closed HillaryManning closed 1 year ago

HillaryManning commented 2 years ago

Issue

Anchored Popover element critically fails with React 18 strict mode.

I started seeing this issue after updating a project to React 18.2.0 and Mobiscroll from 5.17.1 to 5.18.1.

Screen Shot 2022-08-12 at 12 42 09 PM

I reviewed the Mobiscroll 5.18.1 release notes and noticed this bug-fix

Screen Shot 2022-08-12 at 12 45 24 PM

I tried turning off strict mode and now things work as expected.

Expected Behavior

Anchored Popover element works as usual with strict mode on.

dioslaska commented 2 years ago

Could not reproduce this, could you share the relevant code please?