question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visibility issue with Safar and some external css libs

See original GitHub issue

Hi, At first place thanks for great work.

I found issue, even if it is not directly related with this polyfill, in Safari in case where you have included some external css libs. Safari show select box under the text field, so it wasn’t look good. After some time spent on debugging and investigation I found that actually it just not hide select box like it do on jsfiddle examples for this polyfill. Fast fix, that could save time to someone with similar issue is to add this line of in css: select[hidden] { display: none; }

I hope this would be helpful to someone.

p.s. I also thought that it would be more user friendly if in Safari on click to input field show list automatically, without need to use arrows, so I adjusted code to that. If you think it is something which could be common I can make PR with my changes?

Thanks again for great work.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zmilancommented, Apr 17, 2018

@mfranzke I really can not say which exactly css file make issue. Front part of application is solid mess of different css libs and I wasn’t able to detect right one. I concluded that it is issue with some of libs because I used same browser to open polyfill example on jsfiddle and on our page. I also checked rendered code and everything, but I wasn’t able to find any difference. Than it hit me that it must be “hidden” attribute and once when I try it it start working correct…

About triggering of the dropdown/suggestions in focusing the input field, I decided to add it in our case since in other browser on focus you get arrow icon in right corner of field, but in Safari there isn’t any sign that you can get dropdown/suggestions. If you don’t know that it should work like that and if you not hit letter from options on list it would work totally same like regular text field. I understand your decision to stay on specs side too. I hope this help 😃

1reaction
mfranzkecommented, Apr 17, 2018

Hi @zmilan,

thanks a lot for your feedback ! And thanks as well for your compliments !

Quick question on this: What’s the external css libs that you’re including? In general I assume that this CSS should be included anyway if necessary as a fallback for IE10-, but I wouldn’t expect any problems in Safari at all, as the hidden-attribute should be supported even already in Safari and it might be a problem related to th external css libs that shouldn’t have any implication to the code of the polyfill. Let’s see.

Additionally regarding the triggering of the dropdown / suggestions in focusing the input field, this could be a valuable change to the User experience, but this is neither mentioned in the specs nor some of the already supporting browser would handle it like this. So regarding the expected functionality of a polyfill, it might add unexpected functionality, that I’d like to prevent to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If Safari on Mac doesn't open a webpage or isn't working as ...
If Safari isn't working as you expect, one of these solutions might help. These solutions are for issues that affect Safari on Mac, ......
Read more >
Here's How I Solved a Weird Bug Using Tried and True ...
At first, this looks like a CSS issue. Some styles might be applied on a hover event that breaks the layout or the...
Read more >
Javascript on mac Safari causing problems - SitePoint
Hi I have this piece of Javascript in a gallery site th for (i = 0; i < slides.length; i++) { slides[i].style.display =...
Read more >
Rounded cornes (border radius) Safari issue - Stack Overflow
To illustrate the problem in Safari, let's begin with a plain image. Here we have an image of 100px x 100px. Adding a...
Read more >
100vh problem with iOS Safari - DEV Community ‍ ‍
The web content it's outside the viewport although we used 100vh (the red opacity box with 100vh... Tagged with javascript, mobile, css, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found