Skip to content

Commit

Permalink
bind handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Jan 22, 2024
1 parent a158a19 commit 1fe20d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions papyri-lab/src/widgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class PapyriComponent extends React.Component {
return (
<React.StrictMode>
<input
onChange={this.handleInputChange}
onChange={this.handleInputChange.bind(this)}
value={this.state.searchterm}
/>
<button onClick={this.back}>Back</button>
Expand All @@ -119,7 +119,7 @@ class PapyriComponent extends React.Component {
})}
</ul>
<div className="view">
<SearchContext.Provider value={this.onClick}>
<SearchContext.Provider value={this.onClick.bind(this)}>
<ThemeProvider renderers={RENDERERS}>
<MyPapyri node={this.state.root} />
</ThemeProvider>
Expand Down

0 comments on commit 1fe20d2

Please sign in to comment.