Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

fix: Ignore error from react drag n drop [AB#17466] #648

Merged
merged 3 commits into from
Mar 8, 2019
Merged

Conversation

tbarlow12
Copy link
Contributor

ReactDnD currently throws an error when tags are dragged. The operation still performs successfully, but throws the error anyway. This catches that specific error and ignores it

@@ -77,6 +77,14 @@ export class ErrorHandler extends React.Component<IErrorHandlerProps> {
* @param error The error to handle
*/
private handleError(error: string | Error | AppError) {
// This is a special case where we don't need to throw an
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there no way for us to catch this within the tags input component? Fix the underlying cause?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's thrown by the ReactDnD inside the tags input component we're using... My fix is the new tags input component. This is just the patch for the time being

Copy link
Contributor

@PIC123 PIC123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a simple enough fix and seems to work for now, but to echo Wallace, is there a way to address the root cause in the tag component itself or is this an issue with integration or something?

@tbarlow12 tbarlow12 merged commit d6c8e20 into dev Mar 8, 2019
wbreza pushed a commit that referenced this pull request Mar 9, 2019
@mydiemho mydiemho deleted the tabarlow/fix-dnd branch March 20, 2019 21:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants