Comments (4)
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.
I would hope this check or some other mitigation will be someday added to the Mollie.js library.
from components-examples.
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.
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.
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)
- testmode missing from examples HOT 1
- Accessibility (= keyboard only) limitation when creditcard form has display:none on page load HOT 2
- Inputting an incomplete expiry date leads to JS console errors HOT 7
- createToken doesn't return anything and MollieComponentsError: Messenger can't be loaded Failed handshake HOT 4
- font support HOT 1
- Issues mounting components
- Mollie components & Content Security Policy HOT 1
- Card number input field pattern HOT 1
- Controller can be created multiple times HOT 1
- Styles for placeholder doesnโt work HOT 2
- diff return type on error
- TypeError: undefined is not an object HOT 1
- Harmonizing Mollie with Rails Turbo Drive/pjax like behaviour
- Token is undefined .Showing You have not yet activated the credit card payment method.
- Add locale cs_CZ
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 components-examples.