jessepollak / jessepollak/card

Div collapses/hides

Open
#375 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
11.7k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Hello

I've managed to get this working on a blank page... however when I put it into a page on OpenCart the credit card will show on page load, then instantly hide itself.

I've tried a number of different CSS to keep it from disappearing, however it instantly collapses and hides.

`
var card = new Card({
form: document.querySelector('#payment'),
container: '.card-wrapper',

formSelectors: {
numberInput: 'input#input-cc-number', // optional — default input[name="number"]
cvcInput: 'input#input-cc-cvv2', // optional — default input[name="cvc"]
nameInput: 'input#name' // optional - defaults input[name="name"]
},

width: 400, // optional — default 350px
formatting: true, // optional - default true
});

.card-wrapper {
display: block;
width: 100%;
min-height: 200px;
visibility: visible;}
`

This is what I have, any ideas?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.