[zanata/zanata-platform] fd1f7b: fix(ZNTA-1935): remove warnings and prevent React ...
GitHub
noreply at github.com
Wed May 17 01:52:23 UTC 2017
Branch: refs/heads/damason/react-upgrade-prep/ZNTA-1953
Home: https://github.com/zanata/zanata-platform
Commit: fd1f7b1e478e3deb8a21fdda672b41e01039d5b0
https://github.com/zanata/zanata-platform/commit/fd1f7b1e478e3deb8a21fdda672b41e01039d5b0
Author: David Mason <drdmason at gmail.com>
Date: 2017-05-17 (Wed, 17 May 2017)
Changed paths:
M server/zanata-frontend/src/frontend/app/editor/components/EditorSearchInput/index.js
M server/zanata-frontend/src/frontend/app/editor/components/UiLanguageDropdown/index.js
Log Message:
-----------
fix(ZNTA-1935): remove warnings and prevent React swallowing props.key
React silently consumes props.key and it is not defined in the component
this.props. The workaround is to use a different name (e.g. id). We
should look at adding a linting rule to make using 'key' as a prop
name in propTypes an error.
More information about the zanata-commits
mailing list