From c3a31e0df05d8c3b71cd6ff771fb898d84a8699f Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 29 Jan 2020 15:30:34 -0800 Subject: [PATCH] Removed "Undo" button and unnecessary event.preventDefault() --- .../devtools/views/Components/EditableValue.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/react-devtools-shared/src/devtools/views/Components/EditableValue.js b/packages/react-devtools-shared/src/devtools/views/Components/EditableValue.js index 90b9caefe7646..e501c39adee04 100644 --- a/packages/react-devtools-shared/src/devtools/views/Components/EditableValue.js +++ b/packages/react-devtools-shared/src/devtools/views/Components/EditableValue.js @@ -8,8 +8,6 @@ */ import React, {Fragment, useRef} from 'react'; -import Button from '../Button'; -import ButtonIcon from '../ButtonIcon'; import styles from './EditableValue.css'; import {useEditableValue} from '../hooks'; @@ -61,11 +59,6 @@ export default function EditableValue({ } }; - const handleBlur = event => { - event.stopPropagation(); - applyChanges(); - }; - const applyChanges = () => { if (isValid && hasPendingChanges) { overrideValueFn(path, parsedValue); @@ -84,22 +77,14 @@ export default function EditableValue({ - {hasPendingChanges && ( - - )} ); }