Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: [vue] weird behaviour for ion-input focus within ion-modal #30013

Open
3 tasks done
mohamednagy opened this issue Nov 12, 2024 · 0 comments
Open
3 tasks done

bug: [vue] weird behaviour for ion-input focus within ion-modal #30013

mohamednagy opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@mohamednagy
Copy link

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

I have created ion-modal and used the modelController to present the model (just copied the code from here,
the Modal.vue contains multiple ion-input and is triggered as

const modal = await modalController.create({
      component: Modal,
      initialBreakpoint: 0.5
    });

    modal.present();

when setting the initialBreakpoint the focus randomly moves the ion-inputs within the modal, when removing completely the initialBreakpoint it works fine.
see attached video

Screen.Recording.2024-11-12.at.22.13.57.mov

Expected Behavior

  • moving between the ion-inputs should be smooth and focus should be set accordingly.

Steps to Reproduce

  1. create a fresh new installation
  2. copy the implementation from here
  3. set initialBreakpoint to 0.5

Code Reproduction URL

https://ionicframework.com/docs/api/modal#controller-modals

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 8.4.0

Capacitor:

Capacitor CLI : 6.1.2
@capacitor/android : not installed
@capacitor/core : 6.1.2
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v22.9.0 (/opt/homebrew/Cellar/node/22.9.0/bin/node)
npm : 10.8.3
OS : macOS Unknown

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant