ct-material-dashboard-pro-angular icon indicating copy to clipboard operation
ct-material-dashboard-pro-angular copied to clipboard

[Bug] Login popup not loaded

Open w9wen opened this issue 3 years ago • 3 comments

Version

2.7.0

Reproduction link

https://demos.creative-tim.com/material-dashboard-pro-angular2/#/dashboard

Operating System

Windows 11 & macOS Ventura

Device

Notebook & Macbook

Browser & Version

Chrome & Edge

Steps to reproduce

Just using ng serve

What is expected?

The Login pupup correctly when the Login Page open.

What is actually happening?

The Login pupup not loaded when the Login Page open.


Solution

Additional comments

w9wen avatar Nov 02 '22 01:11 w9wen

  • I clicked the login page from the sidebar. image

  • [ISSUE] The login page was not popup. image

  • This popup show up when I refresh this page. image

Thanks'

w9wen avatar Nov 02 '22 01:11 w9wen

Hi.

I have the same problem. Is it solved?

Alessandro

algraps avatar Mar 09 '23 08:03 algraps

This is caused by the 'card' variable being initialized to soon. In login.component.ts, in ngOnInit(), change:

        const card = document.getElementsByClassName('card')[0];
        setTimeout(function() {
            // after 1000 ms we add the class animated to the login/register card
            card.classList.remove('card-hidden');
        }, 1000);

To:

        setTimeout(function() {
            // after 1000 ms we add the class animated to the login/register card
            const card = document.getElementsByClassName('card')[0];
            card.classList.remove('card-hidden');
        }, 1000);

The same holds for the 'lock' page.

fhoog1844 avatar Apr 17 '24 08:04 fhoog1844