Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal not showing #95

Closed
cyberfly opened this issue Feb 23, 2021 · 6 comments
Closed

Modal not showing #95

cyberfly opened this issue Feb 23, 2021 · 6 comments
Labels
question Further information is requested

Comments

@cyberfly
Copy link

On version 0.3.4, and I was using TailwindCSS on my project. No configuration, basically just install Oruga to test it

I was following Open Modal Clip Scroll

https://oruga.io/components/Modal.html#examples

But the modal is not showing. Nothing happen

When inspect the vue dev tools, the o-modal active already true

image

@jtommy
Copy link
Member

jtommy commented Feb 23, 2021

Are you importing Oruga CSS?
What package are you using? oruga or oruga-next ?

@jtommy jtommy added the question Further information is requested label Feb 23, 2021
@cyberfly
Copy link
Author

cyberfly commented Feb 26, 2021

@jtommy sorry its oruga for Vue 2. For the CSS I import

import Vue from 'vue';
import Oruga from '@oruga-ui/oruga';
import '@oruga-ui/oruga/dist/oruga.css';

Vue.use(Oruga);

Oruga button works though

@jtommy
Copy link
Member

jtommy commented Feb 26, 2021

Can you reproduce on codepen or similar?

@astagi
Copy link
Member

astagi commented Mar 2, 2021

@cyberfly any update on this?

@cyberfly
Copy link
Author

cyberfly commented Mar 18, 2021

@jtommy is there any codepen template for Oruga UI that I can quickly spin off?

@astagi I revisit the modal after 2 weeks, and looks like the Modal only works if the isCardModalActive is set to true by default.


<button type="button" @click="isCardModalActive = true">
        Open modal (clip scroll)
      </button>

<o-modal :active.sync="isCardModalActive" :width="640" scroll="clip">
      <p>
        laoreet et metus. Aenean placerat turpis nec tincidunt tempus.
      </p>
    </o-modal>

data() {
    return {
      isCardModalActive: true
    };
  },

@jtommy
Copy link
Member

jtommy commented Mar 24, 2021

@cyberfly yes, active prop must be true

@jtommy jtommy closed this as completed Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants