Fix the chevron enabled state upon refresh

Fix for my previous PR. Apologies for this silly copy/paste mistake.

https://discord.com/channels/1014774730907209781/1014780368890630164/1075782233970970704
This commit is contained in:
patriceac 2023-02-17 16:40:16 -08:00 committed by GitHub
parent 130f9678b2
commit d8dec3e56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,9 +529,9 @@ class ModelDropdown
)
this.modelFilter.classList.add('model-selector')
this.modelFilterArrow = document.querySelector(`#${this.modelFilter.id}-model-filter-arrow`)
// if (this.modelFilterArrow) {
// this.modelFilterArrow.style.color = state ? 'dimgray' : ''
// }
if (this.modelFilterArrow) {
this.modelFilterArrow.style.color = this.modelFilter.disabled ? 'dimgray' : ''
}
this.modelList = document.querySelector(`#${this.modelFilter.id}-model-list`)
this.modelResult = document.querySelector(`#${this.modelFilter.id}-model-result`)
this.modelNoResult = document.querySelector(`#${this.modelFilter.id}-model-no-result`)