Skip to content

[Modal] "show" does not recenter modal #2920

@mvorisek

Description

@mvorisek

Bug Report

Steps to reproduce

  1. open https://dev.atk4.org/demos/_unit-test/late-output-error.php
  2. click first button (Test LateOutputError I: Headers already sent)
  3. notice the modal is NOT vertically centered

The demo closes another modal right before the final modal is shown, but when I put $(this).modal('refresh'); at https://github.com/atk4/ui/blob/5.0.0/js/src/services/modal.service.js#L44 line the problem is gone, so it seems the "show" does not explicitly refresh the modal at all.

Expected result

.modal('show') must always refresh/recenter the modal

Screenshot (if possible)

image

Version

2.9.3

Metadata

Metadata

Assignees

Labels

state/has-prAn issue which has a related PR opentype/bugAny issue which is a bug or PR which fixes a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions