From 39ac7809ce71436182d22f63102cfb6016b3f4ec Mon Sep 17 00:00:00 2001 From: Rebecca Jiang Date: Wed, 10 Apr 2019 21:00:55 -0400 Subject: [PATCH] fixed issue #14166 --- packages/block-library/src/rss/edit.js | 2 ++ packages/components/src/range-control/index.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/rss/edit.js b/packages/block-library/src/rss/edit.js index 9b98eaea537819..f9d6a61a67a6ee 100644 --- a/packages/block-library/src/rss/edit.js +++ b/packages/block-library/src/rss/edit.js @@ -119,6 +119,8 @@ class RSSEdit extends Component { onChange={ ( value ) => setAttributes( { itemsToShow: value } ) } min={ DEFAULT_MIN_ITEMS } max={ DEFAULT_MAX_ITEMS } + allowReset={ true } + initialValue={ 5 } required /> { resetCurrentInput(); - onChange(); + onChange( parseFloat( initialInputValue ) ); }; const resetCurrentInput = () => { if ( currentInput !== null ) {