topic select WIP

This commit is contained in:
bniwredyc 2023-03-24 14:39:52 +01:00
parent 5d5b2fc9ff
commit 0fc0fd10f0
2 changed files with 4 additions and 19 deletions

View File

@ -2,21 +2,6 @@
background: #fff;
}
//.TopicSelect.solid-select-container {
// color: #fa7f25;
//}
//.TopicSelect .solid-select-control {
// outline-color: #fca560;
// border-color: #fca560;
//}
//.TopicSelect .solid-select-placeholder {
// color: #fca560;
//}
//.TopicSelect .solid-select-option:hover {
// background-color: #fa7f25;
// color: #fff;
//}
//.TopicSelect .solid-select-option[data-focused=true] {
// background-color: #fca560;
// color: #fff;
//}
.TopicSelect .solid-select-option[data-disabled='true'] {
display: none;
}

View File

@ -18,7 +18,7 @@ export const TopicSelect = (props: TopicSelectProps) => {
key: 'title',
disable: (topic) => {
console.log({ selectedTopics: clone(props.selectedTopics) })
return props.selectedTopics.includes(topic)
return props.selectedTopics.some((selectedTopic) => selectedTopic.slug === topic.slug)
}
})