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',