Commit f159137
James K Nelson
Fix autoFocus
As `autoFocus` is listed in `propTypes`, the `_.omit` call on line 95 was removing it from `this.props` and thus causing the variable to always be `null`.
I've tested this by hand in a project I'm using NumberPicker in. I've spent some time trying to write a test, but given that React implements `autoFocus` itself instead of passing it to the underlying HTML element, I couldn't figure out how to do this.1 parent 828f25c commit f159137
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
| 146 | + | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
0 commit comments