Commit Graph

93 Commits

Author SHA1 Message Date
偏右
26c61a12d5
🐛 Input disabled should not be allowed to clear (#18482)
close #18481
2019-08-26 22:58:00 +08:00
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00
LilyWakana
9c0dbe2ddf fix: optimize Input presuffix style(#17414) (#17684) 2019-07-31 18:39:58 +08:00
wenhong
77d8c92a16 chore: remove unnecessary disable default props 2019-07-19 17:05:29 +08:00
zombieJ
dd435afadb
fix warning check logic (#15251) 2019-03-07 15:47:43 +08:00
afc163
1b713c94e6
🐛 Focus input after clear input content 2019-03-04 22:19:40 +08:00
zombieJ
4d1a998246
add component param in warning (#15078)
* add component param in warning

* update snapshot
2019-02-27 15:32:29 +08:00
zombieJ
48900955f8
Warning Input by: add or remove prefix / suffix when Input is focused (#14948)
* todo

* add warning

* add FAQ

* fix typo
2019-02-20 15:12:29 +08:00
thilo-behnke
a9a6da47ed Input: Clear icon doesn't disappear if value is null (vs undefined or empy string) (#14733)
* fixed issue with allowClear if value is null

* added test cases for allowClear fix
2019-02-07 11:39:16 +08:00
zombieJ
5ac80c8e55
Use addonAfter instead of suffix when use enterButton in Input.Search (#14461)
fix #14450
2019-01-25 11:06:05 +08:00
afc163
b0df3c1225 Fix input defaultValue and value 2018-12-28 23:00:34 +08:00
afc163
a7786267a7 🐛 Fix review problems 2018-12-28 23:00:34 +08:00
afc163
fab24bf38c 🐛 Fix review problems 2018-12-28 23:00:34 +08:00
afc163
d19f406f86 fix onChange e.target.value when clear 2018-12-28 23:00:34 +08:00
afc163
cb57ff103b 🐛 Fix review problems 2018-12-28 23:00:34 +08:00
afc163
e6bdd3d656 fix snapshot and defaultValue warning 2018-12-28 23:00:34 +08:00
afc163
f10cb764e4 fix defaultValue 2018-12-28 23:00:34 +08:00
afc163
d61ad7445a support allowClear for Input 2018-12-28 23:00:34 +08:00
afc163
30fe9918d8
Merge branch 'master' into feature
* master:
  📝 Add bodyStyle and style of Drawer in documentation, #13850
  🐛 Fix Drawer style not working
  🐛 fix markStyle affset style
  Update Santa.jsx
  update changelog
  bump 3.11.6
  revert Christmas egg
  [type] make type of components compatible with ComponentType<P>
  bump 3.11.5
   site: make document side bar sticky
2018-12-25 16:28:50 +08:00
frezc
5f9b376456 [type] make type of components compatible with ComponentType<P> 2018-12-25 01:10:00 +08:00
陈帅
8e11f0bdb9 merge support prettier 2018-12-07 20:02:01 +08:00
陈帅
dca9715186 support prettier 2018-12-07 18:27:30 +08:00
zy410419243
c161d9c285 feat: Add Input.Password 2018-12-05 19:46:06 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls (#13389)
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
Sebastian Busch
d47a5be712 Input: new method select(), passed to underlying input (#11906)
* Input: pass through method select() to underlying input

* add test for Input select()
2018-08-28 18:54:21 +08:00
Wei Zhu
be74114d22 fix: Input 'autosize' is missing in type error
close #11697

`autosize` was used for `<Input type="textarea" />` which has been
separated to Input.Textarea
2018-08-13 14:04:27 +08:00
Wei Zhu
064bfaf554 Add @types/prop-types 2018-08-07 21:09:05 +08:00
afc163
aa6b55be7e clean up unused code 2018-07-31 16:40:48 +08:00
Wei Zhu
ff458a2c3f Improve Input type definitions
Close #10166
2018-05-21 21:31:59 +08:00
afc163
29229ebee7 fix: input onDoubleClick type, close #10518 2018-05-19 20:01:47 +08:00
Walter Barbagallo
963120f702 Improved Form component typings (#10564)
* Improved Form component typings

With this fix you can use HTMLFormElement attributes on Form component
without getting TypeScript errors.

For example this code does not longer produce error for the additional
`autoComplete` prop:

```
const myForm = (
  <Form autoComplete="off">
    ...
  </Form>
)
```

* Fix onBlur / onChange typings with Input component

This improvement fix a typing issue incompatibility with
`react-final-form`
The incompatibility involve [this
line](https://github.com/final-form/react-final-form/blob/v3.4.2/src/index.d.ts#L20)
where the handler argument is a more specific SyntheticEvent
2018-05-17 23:45:13 +08:00
曾凯
d868c5a58e fix Input type error (#9046) 2018-01-20 19:35:14 +08:00
Yury Kozyrev
88e0c9b436 More tabIndex properties (#8936)
* Update Checkbox.tsx

* Update Input.tsx

* Update index.tsx
2018-01-12 00:09:23 +08:00
Wei Zhu
98ec9100c3 Update Input types 2017-12-28 10:51:12 +08:00
delesseps
8cdf9ea97a Add onKeyUp TypeScript definition to Input component (#8705)
* Add onKeyUp support to Input component

* Update snapshot

* Allow other pros to handle onKeyUp
2017-12-28 09:27:11 +08:00
ddcat1115
f780759f91 fix large size formItem vertical align (#8495)
* - fix large size input with prefix/suffix vertical align
- fix large size button vertical align

* use large size for formItem default line-height

* improve
2017-12-08 20:57:30 +08:00
Wei Zhu
01f4b4e713 Merge branch 'master' into antd-3.0 2017-12-01 11:50:07 +08:00
Wei Zhu
4aeb811b72
Remove deprecations (#8351) 2017-11-30 09:53:32 +08:00
ddcat1115
91fc059c9d fix input with addon(in form) vertical align issue (#8325) 2017-11-29 11:20:38 +08:00
Wei Zhu
05c702838d Fix implicit any error for Input 2017-11-21 20:38:30 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
delesseps
a8cab96c13 Add maxLength attribute to Input (#7744) 2017-09-27 09:57:23 +08:00
delesseps
2730344ff7 Add maxLength attribute to Input (#7744) 2017-09-27 09:56:30 +08:00
delesseps
c419a1ddef Remove autoComplete restriction to allow more complex auto-filling behaviour (#7699) 2017-09-22 13:35:26 +08:00
delesseps
bb411517cf Remove autoComplete restriction to allow more complex auto-filling behaviour (#7699) 2017-09-22 13:31:48 +08:00
Wei Zhu
4664e36fa4 refactor: input string refs to callback (#7489) 2017-09-08 09:43:21 +08:00
infeng
d19bfcbf74 fix onChange ts definition of Input 2017-07-19 13:52:55 +08:00
afc163
81a8d71ec3 Fix Input className to wrapper, close #6809 2017-07-12 21:43:06 +08:00
Benjy Cui
9c7cec3e39 refactor: remove span[disabled] 2017-07-12 14:23:47 +08:00
偏右
b653a2c055 Merge branch 'master' into feature-2.12 2017-07-07 19:41:37 +08:00