8000 [component] enables filter if it is a class string · andrewvmail/react-sortablejs@7c299f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c299f5

Browse files
author
Wayne Van Son
committed
[component] enables filter if it is a class string
1 parent 78ac562 commit 7c299f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-sortable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
110110

111111
// @todo - handle the function if avalable. I don't think anyone will be doing this soon.
112112
const filtered = typeof filter === "string" && {
113-
[filter]: !!item.filtered
113+
[filter.replace(".", "")]: !!item.filtered
114114
};
115115

116116
const className = classNames(prevClassName, {

0 commit comments

Comments
 (0)
0