-
Notifications
You must be signed in to change notification settings - Fork 49.9k
Closed as not planned
Closed as not planned
Copy link
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
React version: "react": "^17.0.2", "react-dom": "^17.0.2",
const tagsId = tagInputRef.current!.getTags().map(t => t.id); // It works OK! And it's called in click handler
setSuggestions([]);
loadSuggestions(`/schemas/${schema!._key}/suggestions?text=${text}`)
.then((suggestions) => {
const tagsId = tagInputRef.current!.getTags().map(t => t.id); // The current is NULL ?????
let rawSuggestions = suggestions.map(
(suggestion) => new SuggestionKeyword(schema!._key!, suggestion));
rawSuggestions = rawSuggestions?.filter(s => !tagsId.includes(s.id)) || []
setSuggestions(rawSuggestions);
})Metadata
Metadata
Assignees
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug