Merge pull request #1508 from nicolasayala/filteredList-search-fix

Fix widgets.FilteredList widget search on plain string choices
develop
Alan 2020-02-27 18:51:28 -05:00 committed by GitHub
commit a92dbd517a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -736,9 +736,9 @@ end
function FilteredList:setChoices(choices, pos) function FilteredList:setChoices(choices, pos)
choices = choices or {} choices = choices or {}
self.choices = choices
self.edit.text = '' self.edit.text = ''
self.list:setChoices(choices, pos) self.list:setChoices(choices, pos)
self.choices = self.list.choices
self.not_found.visible = (#choices == 0) self.not_found.visible = (#choices == 0)
end end