Remove autobind decorator. Fix bugs in AR view
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from "react"
|
||||
import PropTypes from "prop-types"
|
||||
import { Header } from "."
|
||||
import autobind from "autobind-decorator"
|
||||
import { reactAutoBind } from "auto-bind2"
|
||||
|
||||
const headerButtonShape = {
|
||||
icon: PropTypes.string.isRequired,
|
||||
@@ -19,6 +19,7 @@ export class BoundHeader extends React.Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props)
|
||||
reactAutoBind(this)
|
||||
|
||||
const { name, binder } = this.props
|
||||
|
||||
@@ -26,7 +27,6 @@ export class BoundHeader extends React.Component {
|
||||
this.state = binder.getBindingState(name)
|
||||
}
|
||||
|
||||
@autobind
|
||||
updateValue(e) {
|
||||
this.setState(e.state)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user