1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Clear input store when user cancel.

Closes #4
This commit is contained in:
Ivar 2016-11-16 21:58:30 +01:00
parent 993222a749
commit 1a21e16710
3 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ const prepare = (methods, dispatch) => {
methods.onCancel = (evt) => {
evt.preventDefault();
methods.clear();
hashHistory.push('/features');
};

View File

@ -33,6 +33,7 @@ const prepare = (methods, dispatch) => {
methods.onCancel = (evt) => {
evt.preventDefault();
methods.clear();
hashHistory.push('/features');
};

View File

@ -29,6 +29,7 @@ const prepare = (methods, dispatch) => {
methods.onCancel = (e) => {
e.preventDefault();
methods.clear();
// somewhat quickfix / hacky to go back..
window.history.back();
};