1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Add final check.

This commit is contained in:
mike12345567 2024-01-24 16:31:03 +00:00
parent b8c7da02e2
commit 45c040803f

View file

@ -42,7 +42,7 @@
}
const index = options.findIndex((option, idx) => {
const opt = getOptionValue(option, idx)
return compare ? compare(opt, value) : opt === value
return typeof compare === "function" ? compare(opt, value) : opt === value
})
return index !== -1 ? getAttribute(options[index], index) : null
}