Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Vue3-select2-modal problem. #62

Open
nyanya29 opened this issue Jun 27, 2022 · 1 comment
Open

Vue3-select2-modal problem. #62

nyanya29 opened this issue Jun 27, 2022 · 1 comment

Comments

@nyanya29
Copy link

when i click my select2 component inside a modal. the options display at back of the modal.
image

@JorgRios
Copy link

JorgRios commented Aug 2, 2022

I had the same problem, but I used the dropdownParent option in the options section like this

<Select2 v-model="module_id" :options="listModule" :settings="{width: '100%', dropdownParent:'#staticBackdrop'}" @select="dataModules()" />

Where static Backdrop is the Id of my bootstrap modal

Check the options for select2 in its official documentation

https://select2.org/troubleshooting/common-problems
example_1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants