mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #4253 - AutoComplete: loading state
This commit is contained in:
parent
5d74eae8a8
commit
eca735c8c8
4 changed files with 17 additions and 2 deletions
|
@ -87,7 +87,7 @@
|
|||
/>
|
||||
</li>
|
||||
</ul>
|
||||
<slot v-if="searching" :class="cx('loadingIcon')" name="loadingicon">
|
||||
<slot v-if="searching || loading" :class="cx('loadingIcon')" name="loadingicon">
|
||||
<i v-if="loadingIcon" :class="['pi-spin', cx('loadingIcon'), loadingIcon]" aria-hidden="true" v-bind="ptm('loadingIcon')" />
|
||||
<SpinnerIcon v-else :class="[cx('loadingIcon'), loadingIcon]" spin aria-hidden="true" v-bind="ptm('loadingIcon')" />
|
||||
</slot>
|
||||
|
@ -477,7 +477,7 @@ export default {
|
|||
}
|
||||
},
|
||||
onContainerClick(event) {
|
||||
if (this.disabled || this.searching || this.isInputClicked(event) || this.isDropdownClicked(event)) {
|
||||
if (this.disabled || this.searching || this.loading || this.isInputClicked(event) || this.isDropdownClicked(event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue