Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ export class AutoCompleteEditor implements Editor {

serializeValue() {
// if user provided a custom structure, we will serialize the value returned from the object with custom structure
const minLength = typeof this.editorOptions.minLength !== 'undefined' ? this.editorOptions.minLength : 3;
if (this.editorOptions.forceUserInput) {
this._currentValue = this.$input.val().length > 3 ? this.$input.val() : this._currentValue;
this._currentValue = this.$input.val().length >= minLength ? this.$input.val() : this._currentValue;
}
if (this.customStructure && this._currentValue.hasOwnProperty(this.labelName)) {
return this._currentValue[this.labelName];
Expand Down