mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-09 14:40:41 +02:00
fix: support upper case search (#3218)
This commit is contained in:
committed by
Ian Storm Taylor
parent
2240ce2274
commit
b5fe096844
@@ -24,7 +24,7 @@ const MentionExample = () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
const chars = CHARACTERS.filter(c =>
|
const chars = CHARACTERS.filter(c =>
|
||||||
c.toLowerCase().startsWith(search)
|
c.toLowerCase().startsWith(search.toLowerCase())
|
||||||
).slice(0, 10)
|
).slice(0, 10)
|
||||||
const suggest = target && chars.length > 0
|
const suggest = target && chars.length > 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user