tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: select多选场景下不设置filterable,点击输入框不会触发focus和blur事件

Open wtina opened this issue 1 year ago • 5 comments

Version

latest

Vue Version

latest

Link to minimal reproduction

Step to reproduce

不开启filterable

What is expected

希望不开启filterable,也可以触发聚焦失焦事件

What is actually happening

实际不会触发失焦聚焦事件

What is your project name

hundsun

Any additional comments (optional)

wtina avatar Jun 14 '24 06:06 wtina

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: Filterable is not set in the select multi-select scenario, and clicking the input box will not trigger the focus and blur events.

Issues-translate-bot avatar Jun 14 '24 06:06 Issues-translate-bot

Bot detected the issue body's language is not English, translate it automatically.

Title: 🐛 [Bug]: Filterable is not set in the select multi-select scenario, and clicking the input box will not trigger the focus and blur events.

When filterable is not set, if there is no selected item, clicking the input box will trigger. When there is a selected item, the input box will be covered by the tag and will not trigger.

wtina avatar Jun 17 '24 01:06 wtina

为什么这个组件从 hui 库中引入呢?提供的源码第一行: import { Select, Option, Modal } from '@hui3/vue'

shenjunjian avatar Jul 08 '24 01:07 shenjunjian

image

根据文档,它是监听输入框的事件。 而没有filter时, 下拉组件只有下拉/ 选择功能, 没有输入框的。所以没有这blur事件是合理的。

shenjunjian avatar Jul 31 '24 09:07 shenjunjian

Bot detected the issue body's language is not English, translate it automatically.


image

According to the documentation, it listens for events of the input box. When there is no filter, the drop-down component only has the drop-down/select function and no input box.

Issues-translate-bot avatar Jul 31 '24 09:07 Issues-translate-bot