Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: panel is null #7

Merged
merged 2 commits into from Jun 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DatePicker.tsx
Expand Up @@ -114,7 +114,7 @@ export default class DatePicker extends Component {
this.setTransform(this.panel.style, `translate3d(0,0,0)`);
this.setTransition(this.panel.style, '.3s');
setTimeout(() => {
this.setTransition(this.panel.style, '');
this.panel && this.setTransition(this.panel.style, '');
}, 300);
}
};
Expand Down
14 changes: 7 additions & 7 deletions tests/__snapshots__/Calendar.spec.tsx.snap
Expand Up @@ -57,37 +57,37 @@ exports[`Calendar english. renders correctly 1`] = `
<div
class="cell cell-grey"
>
Sun
</div>
<div
class="cell"
>
Mon
</div>
<div
class="cell"
>
Tue
</div>
<div
class="cell"
>
Wed
</div>
<div
class="cell"
>
Thu
</div>
<div
class="cell"
>
Fir
</div>
<div
class="cell cell-grey"
>
Sat
</div>
</div>
<div
Expand Down