Vitaliy Filippov
ba3993c811
Fix table styles, pass `style` to top-level element in inputs
2019-05-07 16:50:56 +03:00
Vitaliy Filippov
83dd1c93b7
Clearable dropdown & autocomplete, fix dropdown behaviour, always-controlled inputs
2018-07-17 20:15:40 +03:00
Phil Myers
1dafc5676f
Move Input#validPresent to utils#isValuePresent
2018-02-27 13:19:57 -05:00
Jonas Knutsen
fc9c1802c7
Made role on input field a property ( #1553 )
2017-08-02 18:22:05 +02:00
Javi Velasco
9a9396fa0b
Fix tests
2017-05-24 10:38:04 +02:00
Brock Wills
ae09770cd4
Importing PropTypes from prop-types rather than react ( #1413 )
2017-04-17 16:14:17 +02:00
Javi Velasco
e366bedcf7
Fix #1219
2017-02-07 17:23:04 +01:00
Javi Velasco
ba29686d46
Allow numbers for Input value prop. Fixes #1180
2017-02-07 15:19:09 +01:00
Rubén Moya
c6ce6aa336
handle defaultValue to <Input /> ( #1178 )
2017-01-29 14:15:24 +01:00
Javi Velasco
9d6ec1eedd
Update dependencies and linter ( #1180 )
2017-01-26 18:05:32 +01:00
masakij
f00687564b
refactor propTypes more descriptive
2016-12-14 11:42:24 +09:00
masakij
ce3fbfc913
relaxing propTypes of Input & Autocomplete
2016-12-12 16:18:03 +09:00
Javi Velasco
a1e6dd2379
Merge pull request #848 from rrott/fix/766-input_hint_text
...
Updated to show hint on input if label is empty
2016-10-22 16:51:58 +02:00
Matthew
8d62c8fe55
* Fixed trailing comma.
2016-10-13 13:19:06 +08:00
Matthew
a50c1c406e
* Added multiline height, see #811
2016-10-13 08:15:33 +08:00
Roman Rott
1fa9a0a58d
Updated to show hint on input if lable is empty
2016-10-09 14:37:43 +03:00
Javi Velasco
77b0a4a57d
Fix linter warnings
2016-08-07 21:23:14 +02:00
Javi Velasco
ea3917e10c
Change method name to match lib convention
2016-08-06 18:30:08 +02:00
Simon Selg
f29e570d29
doc(input): add note about handleChange implementation
2016-08-04 22:15:59 +02:00
Simon Selg
6f03fb553a
fix(input): don't remove the maxLenght attribute from inputs
...
We still rely on it when using non-multiline inputs (=> the input element is used), only when using textareas we use our custom maxlength logic.
2016-08-04 22:15:58 +02:00
Simon Selg
70823afcb3
feat(input): prevent insertion of characters if maxLength is reached
...
Previously we'd let the user insert a character, and then, if the resulting string was to long remove it again (through onChange). That creates unnessesary DOM modifications and store updates, and more importantly, diverges from the behavior of the native maxlength attribute of <textarea>.
Now we prevent the characters from beeing inserted in the first place if the length reaches maxlenght.
2016-08-04 22:15:58 +02:00
Simon Selg
d1fcc14cb1
fix(input): always recalculate size
...
The assumstion that an equal amount of characters consume the same size is wrong as not all fonts are monospaced.
2016-08-04 22:15:58 +02:00
Simon Selg
056cd6ddb1
feat(input): set the default row amount for multiline inputs to 1
2016-08-04 03:46:20 +02:00
Simon Selg
a8dbad121f
feat(input): implement maxLength in js rather then using the maxlength prop of the input field
...
This is explained in #685 . Fixes #685 therefore.
2016-08-04 03:45:38 +02:00
Simon Selg
8559c1818c
refactor(input): move autoresize to didUpdate
...
It needs to be there because it also needs to be called when value is changed from outside by setting the value property
2016-08-04 03:41:24 +02:00
Simon Selg
75487fb9a7
fix(input): only remove resize event listerner if it exists
2016-08-04 03:40:10 +02:00
Simon Selg
1809d67813
fix(multiline input): autoresize after initial render too
2016-08-04 03:34:28 +02:00
Javi Velasco
f2dbfb53cd
Fix #547
2016-08-02 21:51:13 +02:00
Ben Fox-Moore
9cc56e1937
Only add Input auto-resize handler to multiline inputs
2016-07-21 15:15:35 +02:00
Javi Velasco
0513cb72e9
Fixes #616
2016-07-10 13:42:35 +02:00
Ben Fox-Moore
4ea305cff2
Fix Number.isNaN TypeError on IE
2016-07-07 15:20:33 +02:00
Javi Velasco
8d65961be2
Restyle a ternary
2016-06-25 12:27:02 +02:00
Simon Selg
5b97b95c62
Add autoresize to multiline inputs
...
This fixes #278
2016-06-25 12:27:02 +02:00
Olivier Louvignes
d06dd78fdd
chore(eslint): fix propTypes order
2016-06-09 19:21:22 +02:00
Olivier Louvignes
c850245694
feat(datepicker,timepicker): add support for `name` prop
2016-06-06 19:37:51 +02:00
Javi Velasco
85e248c0c4
Autoinject Autocomplete, Avatar, Chip and Input
2016-05-28 17:44:29 +02:00
Javi Velasco
6329c5d11d
Make tests pass
2016-05-25 00:25:43 +02:00
Javi Velasco
243644c144
Migrate input to themr
2016-05-21 18:57:49 +02:00
Javi Velasco
0cb8d8bdb2
Get rid of jsx extensions 🔮
2016-04-10 21:23:04 +02:00