mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
When options of select-v2 contain null value in their label Filterable feature won't work and let the web page get stuck I add null value protection to the method and let it return false when label includes null
This commit is contained in:
@@ -146,7 +146,7 @@ const useSelect = (props: ExtractPropTypes<typeof SelectProps>, emit) => {
|
||||
// fill the conditions here.
|
||||
const query = states.inputValue
|
||||
// when query was given, we should test on the label see whether the label contains the given query
|
||||
const containsQueryString = query ? o.label.includes(query) : true
|
||||
const containsQueryString = query ? o.label?.includes(query) : true
|
||||
return containsQueryString
|
||||
}
|
||||
if (props.loading) {
|
||||
|
||||
Reference in New Issue
Block a user