Skip to content
Snippets Groups Projects
Commit 76cd737b authored by Christopher Willis-Ford's avatar Christopher Willis-Ford
Browse files

don't pass isRtl to TargetPaneComponent

Prior to this change, `TargetPane` passed `isRtl` to
`TargetPaneComponent` which then passed it into a `div`, causing the
warning below. Since `TargetPaneComponent` doesn't currently use `isRtl`
so there's no need to pass it in. If `TargetPaneComponent` starts
needing `isRtl` then we should adjust it to not pass that property to
any DOM elements.

The console warning in question is 57 lines long and starts with:

Warning: React does not recognize the `isRtl` prop on a DOM element. If
you intentionally want it to appear in the DOM as a custom attribute,
spell it as lowercase `isrtl` instead. If you accidentally passed it
from a parent component, remove it from the DOM element.
parent c571ad8c
No related branches found
No related tags found
No related merge requests found
......@@ -237,6 +237,7 @@ class TargetPane extends React.Component {
/* eslint-disable no-unused-vars */
const {
dispatchUpdateRestore,
isRtl,
onActivateTab,
onCloseImporting,
onHighlightTarget,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment