Skip to content

Commit

Permalink
fix: Do not pass the unknown properties to component. close #66
Browse files Browse the repository at this point in the history
  • Loading branch information
jessy1092 committed Jul 25, 2016
1 parent 7bd6ebb commit 54d4a92
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/modules/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this;
const { props: { children, init, ...other } } = this;

return (
<div {...other} ref="accordion">
Expand Down
2 changes: 1 addition & 1 deletion src/modules/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this;
const { props: { children, init, ...other } } = this;

return (
<div {...other} ref="checkbox">
Expand Down
2 changes: 1 addition & 1 deletion src/modules/dimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this;
const { props: { children, init, ...other } } = this;

return (
<div {...other} ref="dimmer">
Expand Down
2 changes: 1 addition & 1 deletion src/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Basic = React.createClass({

render: function () {

let { props: { className, children, ...other } } = this;
let { props: { className, children, init, ...other } } = this;

if (className.indexOf('active') >= 0) {
className += ' simple';
Expand Down
6 changes: 5 additions & 1 deletion src/modules/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ const Basic = React.createClass({

render: function () {

const { props: { children, placeholder, source, sourceId, url, icon, ...other } } = this;
const {
props: {
children, placeholder, source, sourceId, url, icon, init, ...other
}
} = this;

return (
<div {...other}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this;
const { props: { children, init, ...other } } = this;

return (
<div {...other} ref="modal" >
Expand Down
2 changes: 1 addition & 1 deletion src/modules/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, percent, value, total, ...other } } = this;
const { props: { children, percent, value, total, init, ...other } } = this;

return (
<div {...other}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, rating, maxRating, ...other } } = this;
const { props: { children, rating, maxRating, init, ...other } } = this;

return (
<div {...other}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this
const { props: { children, init, ...other } } = this

return (
<div {...other} ref="search" >
Expand Down
2 changes: 1 addition & 1 deletion src/modules/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this;
const { props: { children, init, ...other } } = this;

return (
<div {...other} ref="shape">
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this;
const { props: { children, init, ...other } } = this;

return (
<div {...other} ref="sidebar">
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, ...other } } = this;
const { props: { children, init, ...other } } = this;

return (
<div {...other} ref="sticky" >
Expand Down
2 changes: 1 addition & 1 deletion src/modules/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Basic = React.createClass({

render: function () {

const { props: { children, tab, ...other } } = this;
const { props: { children, tab, init, ...other } } = this;

return (
<div {...other}
Expand Down

0 comments on commit 54d4a92

Please sign in to comment.