From 685a30cdcc6e94710ed85f652b2697b6ccf854e8 Mon Sep 17 00:00:00 2001 From: Francois Zaninotto Date: Thu, 31 Oct 2019 16:37:28 +0100 Subject: [PATCH] Cancel icon replaces endAdornment in ResettableTextField --- .../src/input/ResettableTextField.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/ra-ui-materialui/src/input/ResettableTextField.js b/packages/ra-ui-materialui/src/input/ResettableTextField.js index a51da9e6d0d..389dd02548f 100644 --- a/packages/ra-ui-materialui/src/input/ResettableTextField.js +++ b/packages/ra-ui-materialui/src/input/ResettableTextField.js @@ -125,10 +125,18 @@ function ResettableTextField({ /> - {endAdornment} ) : ( - endAdornment + endAdornment || ( + + + + ) ), ...InputPropsWithoutEndAdornment, }}