Skip to content

Commit

Permalink
Merge pull request #1362 from matuzalemsteles/issue-969
Browse files Browse the repository at this point in the history
Fixes #969 - Adds the close method to ClayStripe and ClayToast
  • Loading branch information
jbalsas authored Dec 7, 2018
2 parents 4c12977 + 4b54f76 commit a70a402
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/clay-alert/src/ClayStripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ class ClayStripe extends Component {
_handleHide() {
return !this.emit('hide');
}

/**
* Emits hide alert.
* @public
*/
close() {
this.emit('hide');
}
}

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/clay-alert/src/ClayToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ class ClayToast extends Component {
_handleHide() {
return !this.emit('hide');
}

/**
* Emits hide alert.
* @public
*/
close() {
this.emit('hide');
}
}

/**
Expand Down

0 comments on commit a70a402

Please sign in to comment.