mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: domain_group: only trigger update when item selected
This commit is contained in:
1 file changed
+3
@@ -59,6 +59,9 @@ const page = new NamedPage('domain_group', () => {
|
||||
return;
|
||||
}
|
||||
if (!loaded) return;
|
||||
// FIXME: a temporary fix to skip saving when user inputs partial text without selecting item.
|
||||
// should skip emitting onChange event for this.
|
||||
if (input.value().some(Number.isNaN)) return;
|
||||
$(ele).closest('tr').find('.group-member-count').text(`${input.value().length} ${i18n('members')}`);
|
||||
save();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user