Comments (4)
No, what do you need to do?
from vue-laravel-file-manager.
IMHO dblclick to select file and close filemanager is more general behavior within media managers.
Now dblclick opens preview window with file. I'm using filemanager to select file for featured image. I include filemanager into bootstrap-vue modal box with callback.
this.$store.commit('fm/setFileCallBack', url => { console.info(
File choosen!!! - ${url}) this.onSelectFile() })
To say the truth the first time after open modal window dblclick calls callback function. But only one time. After that dblclick opens preview. I think the reason is in vuex store where active selected file stays after closing bootstrap modal. May be i could clear this somehow ?
from vue-laravel-file-manager.
I think I know where is the problem..
You use bootstrap-vue, it's mean - modal content destroy every moment when you close the modal window.. This calls a method that clears the FM state.
You will need to set a callback for FM every time you show a modal window.
Or try to make the modal window static - (read this)[https://bootstrap-vue.js.org/docs/components/modal#lazy-loading-and-static-modals] -I'm not sure if this will work, but you can try.
from vue-laravel-file-manager.
You are right! Thank you. Add static prop to bootstrap modal solved the problem.
from vue-laravel-file-manager.
Related Issues (20)
- How to run? HOT 2
- ERROR Failed to compile with 1 error 下午6:05:15 error in ./node_modules/vue-loading-spinner/src/components/Texture.vue?vue&type=style&index=0&id=3d9bd062&lang=scss&scoped=true& Syntax Error: TypeError: this.getOptions is not a function HOT 2
- sos,vue2 error HOT 2
- sos error HOT 3
- Set default disk and path on init or any oninit callback ? HOT 1
- Please provide a store!! HOT 1
- Problem with LFM and tinymce HOT 2
- Buffer undefined in Preview.vue HOT 2
- The requested module '/node_modules/diff-match-patch/index.js?v=1f9f0c93' does not provide an export named 'default' HOT 3
- Multiple fm in Vuex store
- Cannot compile with webpack
- Syntax Error: SassError: Undefined function. HOT 2
- Settings is not working. HOT 3
- Integration issue with Vite+VUE3 (pinia)
- This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2.
- Dynamic configuration
- please add cooke for resent opened folder
- Image source not readable
- Vue3 settings not working HOT 1
- Unauthorized when adding "auth" guard.
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-laravel-file-manager.