Comments (1)
Hi @yasirmehmood123 I resolved this issue with after reading this :
https://select2.org/troubleshooting/common-problems
So now what you have to do is to define a modal variable in your component like :
let modal = ref();
onMounted(() => {
modal.value = document.getElementById('my_modal_html_id');
});
return {
modal
};
Then use it in settings bind such as :
<Select2 :settings="{ dropdownParent: modal }"
....
>
</Select2>
Works fine for me, hope for you too :)
from vue-select2.
Related Issues (20)
- On Open not Focus on search filed HOT 2
- Why bootstrap theme doesn't have any effects on select2 component? HOT 1
- Missing usage of optgroup HOT 1
- vee-validate package v2 not working properly with vue-select 2
- Select two elements when one is chosen
- Vue-Select2 not showing on result
- How to serverside query
- Vue.js 3 - problem jquery - does not provide an export named 'default' HOT 7
- modelValue as Number
- Custom Name Option Not Working
- Vue3-select2-modal problem. HOT 1
- Dropdown doesn't close when I use more than one select2 on a page event it remains in dom till press any click
- Multiple Select HOT 1
- @change not working
- selectionCssClass setting doesn't work
- Update proposal
- vue3-select2-component: select2 is not a function & Unhandled error during execution of mounted hook
- Paginate data options in select 2
- how can i add icons/image against every option?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-select2.