Skip to content

[MOO-1887]: Fix initial slide positioning in IntroScreen widget [MX 11]#282

Merged
NikolaSimsic merged 7 commits intomainfrom
fix/intro-screen-mx11
Jul 9, 2025
Merged

[MOO-1887]: Fix initial slide positioning in IntroScreen widget [MX 11]#282
NikolaSimsic merged 7 commits intomainfrom
fix/intro-screen-mx11

Conversation

@UrazAkgultan
Copy link
Copy Markdown
Collaborator

Checklist

  • Contains unit tests ✅
  • Contains breaking changes ❌
  • Compatible with: MX 11
  • Did you update version and changelog? ✅
  • PR title properly formatted ([XX-000]: description)? ✅
  • Works in Android ✅
  • Works in iOS ✅
  • Works in Tablet ✅

This PR contains

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Other (describe)

What is the purpose of this PR?

Currently, when activeSlide is set to a non-zero value, the IntroScreen always opens on the first slide. This happens because the effect that calls scrollToOffset runs too late (or not at all) and its dependency array doesn’t include the slide value/status, so the FlatList never scrolls to the desired index on mount.

@UrazAkgultan UrazAkgultan requested a review from a team as a code owner July 3, 2025 07:12
@UrazAkgultan UrazAkgultan force-pushed the fix/intro-screen-mx11 branch from c523430 to 6bd6983 Compare July 7, 2025 08:19
@UrazAkgultan UrazAkgultan force-pushed the fix/intro-screen-mx11 branch from 3f5f16f to efbea94 Compare July 8, 2025 09:08
vadymv-mendix
vadymv-mendix previously approved these changes Jul 8, 2025
@MendixMobile MendixMobile removed the Core label Jul 9, 2025
@NikolaSimsic NikolaSimsic merged commit 10364ca into main Jul 9, 2025
6 of 7 checks passed
@NikolaSimsic NikolaSimsic deleted the fix/intro-screen-mx11 branch July 9, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants