Skip to content

Commit

Permalink
Check in test suite for submit events escaping react-calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 30, 2017
1 parent daab21c commit ed08bf9
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions test/Test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,28 @@ export default class Test extends Component {
/>
</aside>
<main className="Test__container__content">
<Calendar
locale={locale}
maxDate={maxDate}
maxDetail={maxDetail}
minDate={minDate}
minDetail={minDetail}
onChange={this.onChange}
returnValue={returnValue}
showNeighboringMonth={showNeighboringMonth}
showWeekNumbers={showWeekNumbers}
value={value}
/>
<form
onSubmit={(event) => {
event.preventDefault();
/* eslint-disable no-console */
console.error('Calendar triggered submitting the form.');
console.log(event);
/* eslint-enable no-console */
}}
>
<Calendar
locale={locale}
maxDate={maxDate}
maxDetail={maxDetail}
minDate={minDate}
minDetail={minDetail}
onChange={this.onChange}
returnValue={returnValue}
showNeighboringMonth={showNeighboringMonth}
showWeekNumbers={showWeekNumbers}
value={value}
/>
</form>
{this.renderDebugInfo()}
</main>
</div>
Expand Down

0 comments on commit ed08bf9

Please sign in to comment.