Skip to content

Commit

Permalink
remove form from PicklistBase
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansfdc committed Oct 9, 2015
1 parent f1b5790 commit 105eac0
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 50 deletions.
2 changes: 0 additions & 2 deletions components/SLDSPicklistBase/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ module.exports = React.createClass( {

<div className={"slds-form-element slds-theme--"+this.props.theme}>
<div className={"slds-picklist slds-theme--"+this.props.theme}>
<form>
<button
id={this.props.id}
ref="button"
Expand All @@ -231,7 +230,6 @@ module.exports = React.createClass( {
</button>

{this.props.modal?this.getModalPopover():this.getSimplePopover()}
</form>

</div>

Expand Down
48 changes: 24 additions & 24 deletions demo/static/bundle.js

Large diffs are not rendered by default.

40 changes: 18 additions & 22 deletions lib/SLDSPicklistBase/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,30 +220,26 @@ module.exports = _react2['default'].createClass({
'div',
{ className: "slds-picklist slds-theme--" + this.props.theme },
_react2['default'].createElement(
'form',
null,
'button',
{
id: this.props.id,
ref: 'button',
className: 'slds-button slds-button--neutral slds-picklist__label ' + this.props.className,
'aria-haspopup': 'true',
onBlur: this.handleBlur,
onFocus: this.handleFocus,
onClick: this.handleClick,
onMouseDown: this.handleMouseDown,
tabIndex: this.state.isOpen ? -1 : 0,
onKeyDown: this.handleKeyDown },
_react2['default'].createElement(
'button',
{
id: this.props.id,
ref: 'button',
className: 'slds-button slds-button--neutral slds-picklist__label ' + this.props.className,
'aria-haspopup': 'true',
onBlur: this.handleBlur,
onFocus: this.handleFocus,
onClick: this.handleClick,
onMouseDown: this.handleMouseDown,
tabIndex: this.state.isOpen ? -1 : 0,
onKeyDown: this.handleKeyDown },
_react2['default'].createElement(
'span',
{ className: 'slds-truncate' },
this.getPlaceholder()
),
_react2['default'].createElement(_SLDSIcons2.Icon, { name: 'down', category: 'utility' })
'span',
{ className: 'slds-truncate' },
this.getPlaceholder()
),
this.props.modal ? this.getModalPopover() : this.getSimplePopover()
)
_react2['default'].createElement(_SLDSIcons2.Icon, { name: 'down', category: 'utility' })
),
this.props.modal ? this.getModalPopover() : this.getSimplePopover()
)
);
},
Expand Down
2 changes: 1 addition & 1 deletion lib/SLDSPicklistBase/list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ module.exports = _react2['default'].createClass({
'aria-checked': this.props.isSelected,
role: 'menuitemradio',
tabIndex: -1 },
this.props.isSelected ? _react2['default'].createElement(_SLDSIcons.Icon, { name: 'task2', size: 'small', position: 'left', category: 'standard' }) : null,
this.props.isSelected ? _react2['default'].createElement(_SLDSIcons.Icon, { name: 'check', position: 'left', category: 'utility' }) : null,
this.props.label
)
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "design-system-react",
"version": "0.0.12",
"version": "0.0.14",
"description": "Salesforce Lightning Design System React components",
"scripts": {
"start": "node server.js",
Expand Down

0 comments on commit 105eac0

Please sign in to comment.