Skip to content

tooltip focus trigger invalid #2438

@whu-luojian

Description

@whu-luojian
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.2

Environment

win 10 , chrome83, vue 2.6.x

Reproduction link

https://www.antdv.com/components/tooltip-cn/

Steps to reproduce

<a-tooltip :trigger="['focus']" placement="topLeft">
	<template slot="title">
		<span>xxxxxxxxxxxxx</span>
	</template>
	<a-input
		allowClear
		placeholder="xxxxxxxxxxxxx"
		v-decorator="[
		'desc',
		{
			rules: [{ max: 256, message: 'xxxxxxxxxxx' }]
		}
	]"
/>
</a-tooltip>

What is expected?

when the input is focused, the tooltip show

What is actually happening?

when the input is focused, the tooltip is not visible


This bug appeared after version 1.6(Tooltip supports custom components), so i guess the reason is the a-input component don't have focus native event

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions