-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove raw `document.getElementById` calls When we introduced the `forwardRef` for all components, we also made sure that internal `ref`s were used to keep track of the actual DOM node. This code prefers the `internalXXRef` refs in favor of the `document.getElementById` calls. This is way more React-ish, and also fixes a few issues: - Potential performance improvements (no need to re-query the DOM, since we already have a reference to the DOM node). Note: this is a *guess*, I didn't measure this. - It could be that the element is rendered in another `document`, the correct would involve something like `someDOMNode.ownerDocument.getElementById(...)` but that should not be necessary anymore now. * make Disclosure implementation between React & Vue consistent * use a similar convention for DOM refs to other components * update changelog
- Loading branch information
1 parent
fdd4dd1
commit 07c3a61
Showing
7 changed files
with
39 additions
and
29 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
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
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
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