-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Can not select a item by clicking the item in mention component #5233
Comments
没懂,不能选中? |
你用官网的例子试一下就知道了,可以按回车选择元素,但是点击鼠标就不能,弹出框一下就消失了,我对比了一下 React 的组件,感觉应该是元素上没有加上 tabindex 属性,导致 dropwdownMenu 里的 onFocus 和 onBlur 事件没有触发。我也试着加上这个属性还是没有成功。 |
你看直接在官网上有问题吗 ,我这没问题啊 |
我没能复现,方便的话可以帮助我们进一步定位下吗 |
我用了三个浏览器(Chrome/Edge/Firefox),还用了同事的电脑,都是这个问题啊,Ant Design React 就没有这个问题,我也往上加了 tabindex 属性,还是不行。你要是方便的话可以加我微信,mehunk |
试了很多次 ,鼠标点击选项的时候左键不要松开,就可以复现了(输入框会失去焦点),快速的点击是能够正常选中的。 |
* style: affix & util * feat(alert): add customIcon slot * feat(anchor): ts type * style: auto-complete * feat: avatar add crossOrigin & maxPopoverTrigger * style(backTop): v-show instead v-if * style: badge * style: breadcrumb * feat: button add global size * feat: update i18n * feat: picker add disabledTime * test: update snap * doc: update img url * style: fix Card tabs of left position * doc: update cascader doc * feat: collapse * style: comment * style: configprovider * feat: date-picker add soem icon slot * style: update descriptions style * feat: add divider orientationMargin * doc: update drawer * feat: dropdown add destroyPopupOnHide & loading * style: update empty * feat: form add labelWrap * style: update grid * test: update grid snap * fix: image ts error * fix: mentions cannot select, close #5233 * doc: update pagination change info, close #5293 * fix: table dynamic expand error, close #5295 * style: remove not use * release 3.0.0-beta.11 * doc: update typo * feat: input add showCount * feat: inputNumber add prefix slot * style: update layout * style: update list * feat: add locale i18 * style: update locale ts * style: update mentions * feat: menu divider add dashed * perf: menu * perf: menu animate * feat: modal method add wrapClassName * style: update pageheader * feat: update pagination ts * feat: confirm add showCancel & promise * doc: update popover * style: update progress * style: radio * style: update rate、result、row * feat: select add fieldNames * feat: add skeleton button & input * feat: spin tip support slot * style: slider & space * stype: update steps ts type * style: update switch * feat: table add tree filter * test: update input sanp * feat: table add filterMode... * fix: tree autoExpandParent bug * test: update input snap * doc: tabs add destroyInactiveTabPane * style: update tag * style: update timeline & time-picker * fix: Tooltip arrowPointAtCenter 1px shift bug * feat: typography add enterEnterIcon triggerType * doc: update tree-select * fix: deps and TypeScript types * style: udpate transfer * style: update style * doc: add colorScheme * chore: add css var builg * doc: sort api * style: lint code * doc: add css var * test: update snap * chore: add pre script * chore: update lint * perf: collapse animate * perf: collapse tree * perf: typography shaking when edit * doc: update auto-complete demo * fix: table tree not have animate * feat: deprecated dropdown center placement * feat: deprecated dropdown center placement * test: update snap
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
3.0.0-beta.9
Environment
Mac 12.1, Chrome 98, Vue 3
Reproduction link
Steps to reproduce
输入 @,点击弹出框里面的选项,没有选中点击的选项
What is expected?
应该选中点击的选项
What is actually happening?
看了一下 ant design react 的代码,逻辑上应该是出发 DropdownMenu.jsx 文件下的 onFocus 事件,但实际上该事件没有触发
The text was updated successfully, but these errors were encountered: