Skip to content

Commit bd8875d

Browse files
committed
fixed adding htmlattr props
1 parent 8f5a7d7 commit bd8875d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/components/bottom/HtmlAttr.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class HtmlAttr extends Component<HTMLAttrPropsInt, StateInt> {
6767
) => {
6868
// reassigns global variable for use by other listener functions
6969
buttonTypeTemp = event.target.value;
70-
7170
this.setState({
7271
[event.target.id]: buttonTypeTemp
7372
});
@@ -119,9 +118,7 @@ class HtmlAttr extends Component<HTMLAttrPropsInt, StateInt> {
119118
className={classes.select}
120119
id="htmlType"
121120
placeholder="title"
122-
onChange={(event: React.ChangeEvent<HTMLSelectElement>) =>
123-
this.handleChange(event)
124-
}
121+
onChange={this.handleChange}
125122
value={buttonTypeTemp}
126123
defaultValue={`${``}`}
127124
required
@@ -143,9 +140,7 @@ class HtmlAttr extends Component<HTMLAttrPropsInt, StateInt> {
143140
label={attr}
144141
variant="outlined"
145142
id={attr}
146-
onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
147-
this.handleChange
148-
}
143+
onChange={this.handleChange}
149144
value={this.state[attr]}
150145
/>
151146
)}

0 commit comments

Comments
 (0)