mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-08 09:55:09 +00:00
(js) Improve sg-search directive
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
input = form[vm.inputName],
|
||||
rawSearchText = input.$viewValue;
|
||||
|
||||
if (vm.allowDot && rawSearchText == '.' || form.$valid) {
|
||||
if (vm.allowDot && rawSearchText == '.' || form.$valid && rawSearchText) {
|
||||
if (rawSearchText == '.')
|
||||
// Ignore the minlength constraint when using the dot operator
|
||||
input.$setValidity('minlength', true);
|
||||
|
||||
Reference in New Issue
Block a user