Ends in:
7 DAYS
21 HRS
11 MIN
0 SEC
Ends in:
7 D
21 H
11 M
0 S
Open Closed

Can not scroll down to Save button on Modal pop-up #1299


User avatar
0
drenton created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.3.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

1.Create a model with 15+ properties. e.t.c Customer model with 15 properties. 2. Click New Customer to open Modal window.[The first time, the vertical scroll works well] 3. Close Modal 4. Click New User [or something else that has few properties] 5. Close Modal. 6. Click New Customer again. [This time the vertical scroll bar does not work propelry]


7 Answer(s)
  • User Avatar
    0
    mladen.macanovic created

    Hi,

    Do you get any error in the console?

    Also, can you see what happens in body element with data-modals attribute. Does it go to zero when all modals are closed?

  • User Avatar
    0
    drenton created

    First time when I open a modal, it goes to 1. when I close it, it goes to 0 but when I navigate to other menus, it's decreased by 2 every time.

  • User Avatar
    0
    mladen.macanovic created

    What is your Blazorise version?

  • User Avatar
    0
    mladen.macanovic created

    The issue with data-modals was fixed on 0.9.3.1 so I don't see a reason why it wouldn't work here.Maybe you have cached older version of blazorise.js. Try hitting Ctrl+F5.

    If that doesn't work I suspect the ABP bundle file was created with older blazorise.js.

  • User Avatar
    0
    drenton created

    I cleared the cache, but it still happens.

    I downloaded the new template[4.3.0] and only created the customer model with abp suite.

  • User Avatar
    0
    mladen.macanovic created

    I think there might be a problem with ABP global bundle js file. Maybe it is using the older version of blazorise.bootstrap.js file.

    Can you open the ABP global.js file, format it and search for the following part of the code to make sure we're on agood track. (Look under window.blazoriseBootstrap)

    close: (element) => {
        var modals = Number(document.body.getAttribute("data-modals") || "0");
    
        modals -= 1;
    
        if (modals < 0) {
            modals = 0;
        }
    
        if (modals === 0) {
            window.blazorise.removeClassFromBody("modal-open");
        }
    
        document.body.setAttribute("data-modals", modals.toString());
    }
    

    It must have if (modals < 0) part.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06