-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groups screen displays incorrectly in Safari 14.0.3 #1764
Comments
Can you tell if this a new behavior introduced by an update of Pi-hole or Safari? I do not have a Mac at hand to test this, however, looking at our tests both on Windows and Linux suggests this may be a bug in Safari. @jfb-pihole may have a Mac for testing things. @RamSet may as well. |
Sorry, but I am not a big groups user so I have no history of using the group screens. I will keep an eye on this, and will update if it goes away with future Safari versions. |
I don’t have an updated MAC but on my IOS (Safari 14.0.3) the issue is not present (iPad and iPhone). |
I can confirm this behavior on MacOS Big Sur 11.2.1 with Safari 14.0.3 (16610.4.3.1.4). Green bar across the "list of configured groups", which clears when changing the "Show xx entries" pull down. This behavior also exists on a separate Mac running MacOS Catalina 10.15.7 with Safari 14.0.3 (15610.4.3.1.6, 15610). An older version of Safari (Version 12.1.2 (14607.3.9)) running on MacOS Mojave 10.14.6 displays this page normally. The problem is also not present on the latest IOS 14.4 with latest Safari on that IOS. It appears to be limited to MacOS only. Without clearing the green bar in this manner, clicking on the green bar in my case toggles the enabled setting of my only group (the default group). |
Hi. I did some investigation, I'm no expert but hope this could help. Sometimes the page displays correctly, eg clicking into say clients then whitelist then back to groups in some order will result in a good display. I compared the HTML, for the correct and the error type and vs other pages eg Domains. Within the div element for displaying the table row data and the relevant data field:
Thus the class "icheck-primary" is used rather than "toggle btn btn-success btn-sm" so will be missing formatting. I don't have the skills to track the logic as the page loads to see why it chooses different routes. I'm learning the inspect element functions in the browser as I go along. There's heaps to look at! |
This html is generated by the ajax call, of course, to build the contents of the database. Seems there are a few issues with Safari not playing well with ajax. |
A bit more research. There are error messages which seem to suggest deprecated usage: Deprecation reference: |
I think the TypeError warnings may be red herring, as the depreciated syntax was implemented 4 -5 years ago in jQuery. |
This issue is the same problem as #1849, which has an open PR. |
Versions
Platform
Browser
Expected behavior
The Groups screen in the Group Management section of the Pi-Hole admin console should display the status of the group or groups configured.
Actual behavior / bug
Upon initial load, the List of Configured groups section of Groups screen displays a single block of colour (in my case Green for enabled) across the entire pane. Changing the value in the Items Displayed drop-down causes the pane to reload and the group/groups to be displayed correctly.
Steps to reproduce
Steps to reproduce the behavior:
(0. Restart browser, open UI)
Debug Token
Screenshots
_Screenshot: actual behaviour:
Screenshot: expected behaviour (also, this is the behaviour once the Display Items value has been changed):
_
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: