Skip to content
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

[Bug Report] a bug with "SELECT" component - need to click twice to chose a option on safari with iOS13 #17716

Open
junixy opened this issue Oct 15, 2019 · 16 comments

Comments

@junixy
Copy link

junixy commented Oct 15, 2019

Element UI version

2.12.0

OS/Browsers version

safari 13 on iOS13

Vue version

2.6.10

Reproduction Link

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

(1) open the page with on safari 13 with iOS 13,
(2) click the SELECT component and try to chose an option, but it need to click twice and then it can chose the option.

What is Expected?

it should just click once to chose the option.

What is actually happening?

click the SELECT component and try to chose an option, but it need to click twice and then it can chose the option.

@acgotakuatdji
Copy link

acgotakuatdji commented Oct 18, 2019

Your demo only have input component.

@acgotakuatdji
Copy link

add scss code:

.el-scrollbar {
  > .el-scrollbar__bar {
    opacity: 1;
  }
}

can resolve it.

@my9074
Copy link

my9074 commented Nov 19, 2019

@acgotakuatdji It's worked~ but i don't know what is the cause of this problem ? Can you explain ?

@acgotakuatdji
Copy link

@my9074 https://run.iviewui.com/v8lHkSrE

This is the test demo. Just click Content area. And check console log.

You will get the answer.

@AntonMoskalchenko
Copy link

Still have this problem on ^2.13.0

@NaturalDevCR
Copy link

add scss code:

.el-scrollbar {
  > .el-scrollbar__bar {
    opacity: 1;
  }
}

can resolve it.

Where should i place this? i tried right on a component where i was using select but it didn't work
thanks in advance

@ramkrishnakuldeep
Copy link

add scss code:

.el-scrollbar {
  > .el-scrollbar__bar {
    opacity: 1;
  }
}

can resolve it.

@my9074 https://run.iviewui.com/v8lHkSrE

This is the test demo. Just click Content area. And check console log.

You will get the answer.

Could you elaborate what you trying to say

@mankutila
Copy link

Adding styles didn't do the trick. How to overcome the issue?

@yubaoquan
Copy link

Will this bug be fixed this year?

@ndphuong
Copy link

ndphuong commented Aug 16, 2020

.el-scrollbar__bar {
    opacity: 1!important;
}

add this to index.scss

@Soumns777
Copy link

I've added this line of code, but ios still needs two clicks to respond

@Soumns777
Copy link

@acgotakuatdji Is there any other solution to ios compatible EL-Select?

@Idji
Copy link

Idji commented Aug 3, 2022

@acgotakuatdji i can't see there any answer and the problem is still here v2.15.6
So, can anyone explane why this bug is appear?

@DarknessChaser
Copy link

DarknessChaser commented Dec 28, 2023

This may not be an element but a Safari bug.
When there is code.

<style>
.main:hover .test {
      opacity: 1;
      /*transition: opacity 2s;*/
    }

    .test {
      opacity: 0;
    }
</style>
<body>
<main class="main">
<!--  <div onmouseenter="this.classList.add('hover');" onclick="this.innerHTML +='click'" class="item">4</div>-->
  <div onclick="this.innerHTML +='click'" class="item">4</div>
  <div onmousedown="function f() {

  }" class="test">test 23 baidu.com</div>
</main>
</body>

The same problem can be reproduced in mobile Safari

@WDJ-webDeveloper
Copy link

so!who can tell me why happen this

@WDJ-webDeveloper
Copy link

I want to know reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests