F
Filament5mo ago
nathan

modal scroll bug - can't select text and jumps to top when clicked.

I have a relation manager displaying a table with an action that will open that record's details in a modal window when clicked. That modal scrolls correctly. However, I'm unable to select any text in the modal window and after scrolling down a bit, when I click, it jumps me to the top of the modal window. I've gone through and removed all the infolist elements so it's a single modal window with a little bit of text. I can't double-click and select any text and it jumps to the top of the modal window when I click.
13 Replies
nathan
nathanOP5mo ago
By the way, I've tried the sliding modal window and the default one and both have the same results. Bump.... Any thoughts?
toeknee
toeknee5mo ago
Is this in the resource view?
nathan
nathanOP4mo ago
Yes. The action for the modal window is a Tables\Actions\ViewAction So, when they click on a row in the resource table, it slides out a modal window.
toeknee
toeknee4mo ago
please run: php artisan about
nathan
nathanOP4mo ago
Here are the results of php artisan about.
toeknee
toeknee4mo ago
and running npm run build doesn't change anything or php artisan filament:upgrade
nathan
nathanOP4mo ago
Correct. One interesting thing to note: This only happens with table action modal windows on RelationManagers. I can have a resource and on the list page a table action to display a modal window and it works fine. All relation manager tables with table actions have this bug.
toeknee
toeknee4mo ago
If you can reporudce this, please create a bug report with the repo to be able to replicate it
nathan
nathanOP4mo ago
I don't have the ability to generate a new project right now. Is there anyone here who have RelationManagers that display a modal when clicked and can reproduce this in their own project?
devoidfury
devoidfury3mo ago
Heya! Little late here but it's happening for me too, trying to work it out, considered a high priority issue by a stakeholder. I was poking at it a bit - seems to be something in a focusin handler somewhere in livewire.js but lost the plot. Trying to set up a repro
devoidfury
devoidfury3mo ago
ah, got it. only seems to happen when there is more than one relationmanager. https://github.com/devoidfury/filament-relationmanager-viewaction-repro/tree/relationmanager_issue
GitHub
GitHub - devoidfury/filament-relationmanager-viewaction-repro
Contribute to devoidfury/filament-relationmanager-viewaction-repro development by creating an account on GitHub.
devoidfury
devoidfury3mo ago
(rather than scaffolding out a whole extra model/relationmanager, I just added the existing one twice, but the bug is identical to what I'm seeing with different ones) And just to repeat for clarity; only seems to happen in Chrome browsers, but the selection is kinda wonky in FF too. Been trying to track this down but not having much luck; should I make a ticket?
nathan
nathanOP3mo ago
Yes, please make a ticket. This is a high priority for us as well. Thank you for working on reproducing this issue. (It's nice to know I'm not alone. 😀 )

Did you find this page helpful?