@puppet/react-components
Advanced tools
Comparing version 5.34.0 to 5.34.1
{ | ||
"name": "@puppet/react-components", | ||
"version": "5.34.0", | ||
"version": "5.34.1", | ||
"author": "Puppet, Inc.", | ||
@@ -94,3 +94,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "97f3f727a190facf929db2113e1116a9a56dc0ed" | ||
"gitHead": "0f13f8a4c67d7afc3f87c6d5c6485cff2bbc1cec" | ||
} |
@@ -168,3 +168,2 @@ import React from 'react'; | ||
{trailingIcon && tIcon} | ||
{showTrailingButton && trailingButton} | ||
<Element | ||
@@ -183,2 +182,3 @@ id={name} | ||
/> | ||
{showTrailingButton && trailingButton} | ||
</div> | ||
@@ -185,0 +185,0 @@ ); |
@@ -150,2 +150,7 @@ import jsdom from 'mocha-jsdom'; | ||
}); | ||
it('should render the trailing icon button after the input element if trailingButtonIcon is provided', () => { | ||
const wrapper = shallow(<Input {...requiredProps} trailingButtonIcon="eye" /> ); | ||
expect(wrapper.find('div').children().last().is('Button')).to.equal(true); | ||
}); | ||
}); |
Sorry, the diff of this file is too big to display
1610192
26576