opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.52k stars 247 forks source link

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

Open wtina opened 2 months ago

wtina commented 2 months ago

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)

Issues-translate-bot commented 2 months ago

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.

wtina commented 2 months ago

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.

shenjunjian commented 1 month ago

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

shenjunjian commented 3 weeks ago

image

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

Issues-translate-bot commented 3 weeks ago

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.