-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ControlHOC ref for redux container widgets
If a widget uses `connect` to receive state updates from the store, `ControlHOC` can no longer get the control instance ref. This fix checks for this case and uses a connect option to obtain the wrapped control ref.
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,5 +128,9 @@ export default connect( | |
{ | ||
query, | ||
clearSearch, | ||
}, | ||
null, | ||
{ | ||
withRef: true, | ||
} | ||
)(RelationControl); |