From 6843b1fa25bb9943fc50e5c4b4e9d91c57fd6be5 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 31 Aug 2022 10:57:24 +0200 Subject: [PATCH] fix(Input): ensure dnb-input--null class will not be set --- packages/dnb-eufemia/src/components/input/Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dnb-eufemia/src/components/input/Input.js b/packages/dnb-eufemia/src/components/input/Input.js index 459f7389b73..4b77b4915ed 100644 --- a/packages/dnb-eufemia/src/components/input/Input.js +++ b/packages/dnb-eufemia/src/components/input/Input.js @@ -403,7 +403,7 @@ export default class Input extends React.PureComponent { const mainParams = { className: classnames( 'dnb-input', - `dnb-input--${type}`, //type_modifier + type && `dnb-input--${type}`, size && !sizeIsNumber && `dnb-input--${size}`, hasSubmitButton && 'dnb-input--has-submit-element', isTrue(clear) && 'dnb-input--has-clear-button',