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

[Component] [select-v2] Virtualized select with teleported="false": When you click on the scrollbar, the dropdown automatically closes #16653

Closed
Anton-Zelenkov opened this issue Apr 25, 2024 · 0 comments · Fixed by #16714
Labels

Comments

@Anton-Zelenkov
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.3.11
  • Element Plus Version: 2.5.5
  • Browser / OS: Chrome 123.0.6312.106 / Windows 10 (10.0.19045 Build 19045)
  • Build Tool: Vite

Reproduction

Related Component

  • el-select-v2

Reproduction Link

Element Plus Playground

Steps to reproduce

  1. Add a teleported="false" Virtualized Select. For example:
<template>
  <el-select-v2
    v-model="value"
    filterable
    :options="options"
    placeholder="Please select"
    style="width: 240px"
    multiple
    :teleported="false"
  />
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const initials = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']

const value = ref([])
const options = Array.from({ length: 1000 }).map((_, idx) => ({
  value: `Option${idx + 1}`,
  label: `${initials[idx % 10]}${idx}`,
}))
</script>
  1. Open dropdown by clicking on input.
  2. Hold down the dropdown scrollbar with the left mouse button and try to move it, then release it.

What is Expected?

Dropdown will not close. Options will remain the same

What is actually happening?

Dropdown closes after releasing the left mouse button

Additional comments

Link to visual display of the bug

GUEThe added a commit to GUEThe/element-plus that referenced this issue Apr 29, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue May 4, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue May 7, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue May 9, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue May 11, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue May 13, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue May 13, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue May 18, 2024
Expose listContainerRef, when 'click' event is form listContainerRef and teleported is'false',return
'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue Jun 6, 2024
When 'click' event is form tooltipRef and teleported is'false',return'toggleMenu' function.

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue Jun 6, 2024
Move toggleMenu click event to the right place wrapperRef
Only wrapperRef can control tooltip content visble or not

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue Jun 6, 2024
Move toggleMenu click event to the right place wrapperRef
Only wrapperRef can control tooltip content visble or not

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue Jun 6, 2024
Move toggleMenu click event to the right place wrapperRef
Only wrapperRef can control tooltip content visble or not

closed element-plus#16653
GUEThe added a commit to GUEThe/element-plus that referenced this issue Jun 8, 2024
Move toggleMenu click event to the right place wrapperRef
Only wrapperRef can control tooltip content visble or not

closed element-plus#16653
@btea btea closed this as completed in db0fec8 Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant