Skip to content

Commit

Permalink
Merge pull request #1533 from arnauddem/patch-1
Browse files Browse the repository at this point in the history
Fixed #1405 -  Dialog aria-labelledby references an unexisting id
  • Loading branch information
mertsincan authored Sep 10, 2020
2 parents 58f15f5 + b8cef08 commit 80ce312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export class Dialog extends Component {
<CSSTransition classNames="p-dialog" timeout={transitionTimeout} in={this.props.visible} unmountOnExit
onEntered={this.onEntered} onExit={this.onExit} onExited={this.onExited}>
<div ref={el => this.dialog = el} id={this.id} className={className} style={this.props.style} onClick={this.onDialogClick}
aria-labelledby={this.id + '_label'} role="dialog" aria-modal={this.props.model}>
aria-labelledby={this.id + '_header'} role="dialog" aria-modal={this.props.model}>
{header}
{content}
{footer}
Expand Down

0 comments on commit 80ce312

Please sign in to comment.