File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 45
45
@searchPlaceholder =" Search"
46
46
id ={{ this.portalId }}
47
47
class ={{ concat " margin-top-px-0 phone-number-container__dropdown " this.dropdownAddressableClass }}
48
- {{ on-click-outside this.hideCountrySelector }}
48
+ {{ on-click-outside this.onClickOutside }}
49
49
{{ on " click" this.noop }}
50
50
>
51
51
<:option as |country|>
Original file line number Diff line number Diff line change @@ -142,14 +142,6 @@ export default class OSSPhoneNumberInput extends BaseDropdown<OSSPhoneNumberInpu
142
142
}
143
143
}
144
144
145
- @action
146
- hideCountrySelector ( ) : void {
147
- this . filteredCountries = this . _countries ;
148
- this . closeDropdown ( ) ;
149
- this . cleanupDrodpownAutoplacement ?.( ) ;
150
- document . querySelector ( `#${ this . portalId } ` ) ?. remove ( ) ;
151
- }
152
-
153
145
@action
154
146
focusInput ( ) : void {
155
147
this . inputElement ?. focus ( ) ;
@@ -165,6 +157,13 @@ export default class OSSPhoneNumberInput extends BaseDropdown<OSSPhoneNumberInpu
165
157
this . hideCountrySelector ( ) ;
166
158
}
167
159
160
+ private hideCountrySelector ( ) : void {
161
+ this . filteredCountries = this . _countries ;
162
+ this . closeDropdown ( ) ;
163
+ this . cleanupDrodpownAutoplacement ?.( ) ;
164
+ document . querySelector ( `#${ this . portalId } ` ) ?. remove ( ) ;
165
+ }
166
+
168
167
private validateInput ( ) : void {
169
168
this . invalidInputError = '' ;
170
169
You can’t perform that action at this time.
0 commit comments