From d2ac3a8d3483d7a1dac8a74f9e56ebc75397177b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=A1=BA=E5=BC=BA?= Date: Mon, 11 Mar 2019 11:52:47 +0800 Subject: [PATCH] clear user-select after submit (#3092) --- frontend/src/components/dialog/share-to-user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/dialog/share-to-user.js b/frontend/src/components/dialog/share-to-user.js index b87ae6a2ba..3341972cc2 100644 --- a/frontend/src/components/dialog/share-to-user.js +++ b/frontend/src/components/dialog/share-to-user.js @@ -163,6 +163,7 @@ class ShareToUser extends React.Component { selectedOption: null, permission: 'rw', }); + this.refs.userSelect.clearSelect(); }).catch(error => { if (error.response) { let message = gettext('Library can not be shared to owner.'); @@ -188,6 +189,7 @@ class ShareToUser extends React.Component { selectedOption: null, permission: 'rw', }); + this.refs.userSelect.clearSelect(); }).catch(error => { if (error.response) { let message = gettext('Library can not be shared to owner.');