Skip to content

Commit

Permalink
EuiMutationObserver does not require children (#1076)
Browse files Browse the repository at this point in the history
* EuiMutationObserver does not require children

* changelog
  • Loading branch information
chandlerprall authored Aug 2, 2018
1 parent 8ea6e83 commit 7668226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `3.3.0`.
**Bug fixes**

- `EuiMutationObserver`'s `children` prop is no longer marked as required ([#1076](https://github.com/elastic/eui/pull/1076))

## [`3.3.0`](https://github.com/elastic/eui/tree/v3.3.0)

Expand Down
2 changes: 1 addition & 1 deletion src/components/mutation_observer/mutation_observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ EuiMutationObserver.propTypes = {
children: PropTypes.oneOfType([
PropTypes.node,
PropTypes.arrayOf(PropTypes.node)
]).isRequired,
]),
observerOptions: PropTypes.shape({ // matches a [MutationObserverInit](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserverInit)
attributeFilter: PropTypes.arrayOf(PropTypes.string),
attributeOldValue: PropTypes.bool,
Expand Down

0 comments on commit 7668226

Please sign in to comment.