provide correct rceBodyRef prop type

flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ida72f9874e08caeb7dddad4df8842e01ff42d1ad
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274053
Reviewed-by: Jeffrey Johnson <jeffrey.johnson@instructure.com>
QA-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Product-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
Davis Hyer 2021-09-21 14:11:35 -06:00
parent 5eb82939db
commit 0751b302a7
3 changed files with 2 additions and 4 deletions

View File

@ -80,7 +80,6 @@ const ignoredErrors = [
/Invalid prop `outcomeContextId` of type `number` supplied to `ManageOutcomeItem`/,
/Invalid prop `outcomes.1._id` of type `number` supplied to `OutcomesPopover`/,
/Invalid prop `outcomesGroup.contextId` of type `number` supplied to `FindOutcomesView`, expected `string`/,
/Invalid prop `rceBodyRef` supplied to `MentionDropdownPortal`/,
/Invalid prop `returnFocusTo` of type `DeprecatedComponent` supplied to `(CourseHomeDialog|HomePagePromptContainer)`/,
/Invalid prop `selectedDate` of type `date` supplied to `CanvasDateInput`/,
/Invalid prop `selectedGroupId` of type `array` supplied to `GroupActionDrillDown`/,

View File

@ -271,7 +271,7 @@ const MentionUIManager = ({editor, onExited, onFocusedUserChange, rceRef}) => {
export default MentionUIManager
MentionUIManager.propTypes = {
rceRef: PropTypes.object,
rceRef: PropTypes.oneOfType([PropTypes.node, PropTypes.object]),
onFocusedUserChange: PropTypes.func,
onExited: PropTypes.func,
editor: PropTypes.object

View File

@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/click-events-have-key-events */
/*
* Copyright (C) 2021 - present Instructure, Inc.
*
@ -57,7 +56,7 @@ MentionDropdownPortal.propTypes = {
/**
* Array of optons to be presented to user
*/
rceBodyRef: PropTypes.node,
rceBodyRef: PropTypes.oneOfType([PropTypes.node, PropTypes.object]),
/**
* Array of optons to be presented to user
*/