GithubHelp home page GithubHelp logo

Comments (4)

shershen08 avatar shershen08 commented on June 28, 2024

What we have discovered is that every time the page/component with the payment form is opened within the same session -
Mollie library script creates a div.mollie-components-controller in the HTML - it contains an iframe probably for initializing the secure payment gateway etc.
But this tag resides outside the scope of the Vue app - which means it is not cleared when the user is navigating away or for example closing the form block.

So if you come across situations when your form may be hidden and shown multiple times you have to manually check for this tag and clean this up before initializing again.

screenshot_2022-08-05_at_15 17 21

I would hope this check or some other mitigation will be someday added to the Mollie.js library.

from components-examples.

doskarj avatar doskarj commented on June 28, 2024

Hey, happy to get you an update on this @andyslack.

A bug on our end most likely caused this. Unmounting was fixed in the last release. I would advise you to unmount all Mollie components during the beforeUnmount and mount them again during the onMounted lifecycle event of Vue.

We are also preparing yet another fix, that will unmount Mollie components automatically when they are removed from DOM. However, we still advise developers to unmount Mollie components themselves.

Do not hesitate to reach us again, if you are still experiencing this or any other issue.

from components-examples.

doskarj avatar doskarj commented on June 28, 2024

Thank you for reporting this @shershen08.

This is most likely not connected with the issue that andyslack is experiencing. However, I created a new issue report for this while we are looking into it.

from components-examples.

doskarj avatar doskarj commented on June 28, 2024

We just release a fix, that will automatically unmount Mollie components when they are removed from DOM. This was mentioned in #24 (comment).

from components-examples.

Related Issues (16)

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.