We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 518745b + a04d26c commit 89429a9Copy full SHA for 89429a9
src/index.js
@@ -411,7 +411,10 @@ class ReactTooltip extends React.Component {
411
412
// adding aria-describedby to target to make tooltips read by screen readers
413
if (e && e.currentTarget && e.currentTarget.setAttribute) {
414
- e.currentTarget.setAttribute('aria-describedby', this.state.uuid);
+ e.currentTarget.setAttribute(
415
+ 'aria-describedby',
416
+ this.props.id || this.state.uuid
417
+ );
418
}
419
420
// Make sure the correct place is set
0 commit comments