File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
src/Autocomplete/assets/src Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -65,25 +65,23 @@ export default class extends Controller {
65
65
}
66
66
67
67
connect ( ) {
68
- if ( ! this . tomSelect ) {
69
- if ( this . urlValue ) {
70
- this . tomSelect = this . #createAutocompleteWithRemoteData(
71
- this . urlValue ,
72
- this . hasMinCharactersValue ? this . minCharactersValue : null
73
- ) ;
74
-
75
- return ;
76
- }
68
+ if ( this . urlValue ) {
69
+ this . tomSelect = this . #createAutocompleteWithRemoteData(
70
+ this . urlValue ,
71
+ this . hasMinCharactersValue ? this . minCharactersValue : null
72
+ ) ;
77
73
78
- if ( this . optionsAsHtmlValue ) {
79
- this . tomSelect = this . #createAutocompleteWithHtmlContents ( ) ;
74
+ return ;
75
+ }
80
76
81
- return ;
82
- }
77
+ if ( this . optionsAsHtmlValue ) {
78
+ this . tomSelect = this . #createAutocompleteWithHtmlContents ( ) ;
83
79
84
- this . tomSelect = this . #createAutocomplete ( ) ;
80
+ return ;
85
81
}
86
82
83
+ this . tomSelect = this . #createAutocomplete( ) ;
84
+
87
85
this . startMutationObserver ( ) ;
88
86
}
89
87
You can’t perform that action at this time.
0 commit comments