File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ class HtmlAttr extends Component<HTMLAttrPropsInt, StateInt> {
67
67
) => {
68
68
// reassigns global variable for use by other listener functions
69
69
buttonTypeTemp = event . target . value ;
70
-
71
70
this . setState ( {
72
71
[ event . target . id ] : buttonTypeTemp
73
72
} ) ;
@@ -119,9 +118,7 @@ class HtmlAttr extends Component<HTMLAttrPropsInt, StateInt> {
119
118
className = { classes . select }
120
119
id = "htmlType"
121
120
placeholder = "title"
122
- onChange = { ( event : React . ChangeEvent < HTMLSelectElement > ) =>
123
- this . handleChange ( event )
124
- }
121
+ onChange = { this . handleChange }
125
122
value = { buttonTypeTemp }
126
123
defaultValue = { `${ `` } ` }
127
124
required
@@ -143,9 +140,7 @@ class HtmlAttr extends Component<HTMLAttrPropsInt, StateInt> {
143
140
label = { attr }
144
141
variant = "outlined"
145
142
id = { attr }
146
- onChange = { ( event : React . ChangeEvent < HTMLInputElement > ) =>
147
- this . handleChange
148
- }
143
+ onChange = { this . handleChange }
149
144
value = { this . state [ attr ] }
150
145
/>
151
146
) }
You can’t perform that action at this time.
0 commit comments