[Tabs] component reacts to child input's "change" event.
See original GitHub issue<Tabs onChange={(e) => console.log('change', e)}>
<Tab label='Tab1' value={'1'}>
<input />
</Tab>
<Tab label='Tab2' value={'2'}></Tab>
</Tabs>
Typing anything into input triggers onChange of Tabs component. Seems like input’s change event bubbles up and gets caught by Tabs.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:10
- Comments:19 (4 by maintainers)
Top Results From Across the Web
[Tabs] component reacts to child input's "change" event.
Typing anything into input triggers onChange of Tabs component. Seems like input's change event bubbles up and gets caught by Tabs.
Read more >Passing active tab event to parent and sibling component
The problem with your code is the next lines: toggle = event => { this.setState({ active: event }); this.props.sendEvent(this.state.active); };.
Read more >TabPanel in a React app - Editor losеs the a value after ...
My problem is: when parent component which contains the tab panel re-rendered, the tab page component loss focus and loss all local state...
Read more >How to Build a Tabs Component with React
After the project is finished, change into the directory: cd react-tabs-component. Copy. In a new terminal tab or window, start the project ...
Read more >How to detect when an @Input() value changes in Angular?
We have a component FormComponent (parent) and ChildComponent (child). When the user enters anything in the text input field of the parent ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try giving the
input
anonChange
handler with astopPropagation
call.the problem is also when using Redux Form - then I can’t stop propagation easily