Replace home page image
This commit is contained in:
@@ -28,11 +28,16 @@ class RsvpButton extends React.Component {
|
||||
}
|
||||
|
||||
handleRsvpBlur = () => {
|
||||
this.setState({ inputInvalidMsg: null });
|
||||
if (this.props.focusCallback) {
|
||||
this.props.focusCallback(false);
|
||||
}
|
||||
}
|
||||
|
||||
handleRsvpChange = () => {
|
||||
this.setState({ inputInvalidMsg: null });
|
||||
}
|
||||
|
||||
handleFormSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
fetch(`rsvp/${this.rsvpInput.value}`)
|
||||
@@ -90,6 +95,7 @@ class RsvpButton extends React.Component {
|
||||
ref={(input) => { this.rsvpInput = input; }}
|
||||
onFocus={this.handleRsvpFocus}
|
||||
onBlur={this.handleRsvpBlur}
|
||||
onChange={this.handleRsvpChange}
|
||||
id="code"
|
||||
type="text"
|
||||
name="code"
|
||||
|
||||
Reference in New Issue
Block a user