diff --git a/www/components/itinerum_tutorial/Tutorial.jsx b/www/components/itinerum_tutorial/Tutorial.jsx index 5fa3d4375..1ca89d4e5 100644 --- a/www/components/itinerum_tutorial/Tutorial.jsx +++ b/www/components/itinerum_tutorial/Tutorial.jsx @@ -15,12 +15,21 @@ class TutorialComponent extends React.Component { lname: this.props.schema.lname } }; - this.handleChange = this.handleChange.bind(this); + this.handlefnameChange = this.handlefnameChange.bind(this); + this.handlelnameChange = this.handlelnameChange.bind(this); } - handleChange(event) { + handlefnameChange(event) { this.setState({ schema: { fname: event.target.value, + lname: this.state.schema.lname + } + }); + } + handlelnameChange(event) { + this.setState({ + schema: { + fname: this.state.schema.fname, lname: event.target.value } }); @@ -33,7 +42,8 @@ class TutorialComponent extends React.Component { Last Name -> {this.state.schema.lname}
- + +
{/* bootstrap grid as margin */}