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

Arrow visible after tooltip content is hidden when style prop set #68

Open
oyshan opened this issue Jan 12, 2018 · 0 comments
Open

Arrow visible after tooltip content is hidden when style prop set #68

oyshan opened this issue Jan 12, 2018 · 0 comments
Labels

Comments

@oyshan
Copy link

oyshan commented Jan 12, 2018

Hi!

When setting the style prop on the Tooltip component, the arrow is visible after the tooltip content is hidden. It seems it is visible for additional ~500ms (the default tooltipTimeout value) after the tooltip content is hidden. My render method:

render(){
	const style = {
		style: {
			background: '#337AB7',
			opacity: 0.9,
			color: '#FFF',
		},
		arrowStyle: {
			color: '#337AB7',
		}
	}

	return (
		<span>
			<i
				id={this.parentId}
				style={{ cursor: 'pointer' }}
				className="mdi mdi-information-outline"
				onMouseEnter={this.showTooltip}
				onMouseLeave={this.hideTooltip}
			/>
			<Tooltip
				active={this.state.isTooltipActive}
				parent={'#'+this.parentId}
				arrow="top"
				position="right"
				tooltipTimeout={this.props.tooltipTimeout}
				style={style}
			>
				<div>TEST</div>
			</Tooltip >
		</span>
	)
}

Version: 2.3.0

@Redmega Redmega added the bug label Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants