Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit c56aa53

Browse files
committed
updated constant for better reading
1 parent fa7ffdf commit c56aa53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/angular-slickgrid/editors/autoCompleteEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class AutoCompleteEditor implements Editor {
160160

161161
serializeValue() {
162162
// if user provided a custom structure, we will serialize the value returned from the object with custom structure
163-
const minLength = this.editorOptions.minLength || this.editorOptions.minLength === 0 ? this.editorOptions.minLength : 3;
163+
const minLength = typeof this.editorOptions.minLength !== 'undefined' ? this.editorOptions.minLength : 3;
164164
if (this.editorOptions.forceUserInput) {
165165
this._currentValue = this.$input.val().length >= minLength ? this.$input.val() : this._currentValue;
166166
}

0 commit comments

Comments
 (0)