1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

clear user-select after submit (#3092)

This commit is contained in:
杨顺强
2019-03-11 11:52:47 +08:00
committed by Daniel Pan
parent 0a5bffc45f
commit d2ac3a8d34

View File

@@ -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.');