atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io
MIT License
443 stars 106 forks source link

Crud Modal not behaving correctly #2002

Closed mkrecek234 closed 1 year ago

mkrecek234 commented 1 year ago

In the most recent FUI releases, I encounter the following issue:

See screen recording:

https://user-images.githubusercontent.com/28671486/220370891-ad9cd326-1621-4098-ad09-75047942cd15.mov

mvorisek commented 1 year ago

Yes, this is caused probably by Fomantic-UI autofocus, I have already reported like 5 issues with it. In the next FUI release, I hope they will be fixed.

Please try - click somewhere in the modal before clicking Save. Then click Save. Will the form save?

Also can this be reproduced on some atk4/ui UI demo?

mkrecek234 commented 1 year ago

Correct, any click anywhere in the modal before clicking save will make it save immediately. Atk4/Ui demo: I could not find one yet, as most modal forms are too small I believe

mvorisek commented 1 year ago

Too small - you can resize your browser viewport ;-)

Let's wait a few days until FUI is updated, I am fine with merging the latest FUI Beta into atk4/ui then.

mkrecek234 commented 1 year ago

Can be reproduced on /demos/collection/crud.php by reducing browser size - edit iso2 code, scroll down to reach save button and you will encounter the issue described above.