Git Product home page Git Product logo

Comments (4)

alexusmai avatar alexusmai commented on August 17, 2024

No, what do you need to do?

from vue-laravel-file-manager.

MWStudio4 avatar MWStudio4 commented on August 17, 2024

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.

alexusmai avatar alexusmai commented on August 17, 2024

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.

MWStudio4 avatar MWStudio4 commented on August 17, 2024

You are right! Thank you. Add static prop to bootstrap modal solved the problem.

from vue-laravel-file-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.