Commit Graph

39 Commits

Author SHA1 Message Date
17073025
c31371e5a6 fix(auto-complete): add missing autoFocus prop in type 2018-08-02 10:48:38 +08:00
Wei Zhu
6de4b00815 Rename mode name 2018-06-25 16:52:51 +08:00
Wei Zhu
5eaa03b4ea Update snapshot 2018-06-25 16:52:51 +08:00
ryannz
a5ff8e5de0 fix(AutoComplete): add missing backfill prop in type 2018-06-15 10:29:12 +08:00
Wei Zhu
4d6f8e96b9 Improve AutoComplete types
close #10619
2018-06-09 16:01:18 +08:00
Pierre
09fec16b6f [TS] AutoComplete : Make dataSource optional (#10077)
When using children :
https://ant.design/components/auto-complete/#components-auto-complete-demo-options
2018-04-16 17:42:31 +08:00
GauravV-02
fffde2d836 Resolved type name collisions (#8605) 2017-12-13 20:49:44 -06:00
Wei Zhu
c27d4deb72 Fix implicit any error for AutoComplete 2017-11-22 11:26:04 +08:00
Wei Zhu
9678d3fcfd
Focus && blur support (#8204)
* Add test for select

* Add focus() and blur() for AutoComplete

* Add focus() and blur() to Cascader

* Add focus test for input

* Add focus() and blur() for Checkbox

* Add focus() and blur() for Radio

* Add focus() and blur() for Switch

* Add blur() for TimePicker

* Add focus() and blur() to TreeSelect
2017-11-19 01:41:40 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
afc163
76a30a7686 Fix props passing of AutoComplete, ref #7742 2017-09-30 21:17:49 +08:00
jayberg
4acadc47b5 Avoid circular reference with infinite children (#7742)
Because {element} is a child of <InputElement>, we get a circular reference when also adding "element.props" to <InputElement>, as <InputElement> will be cloned to <{element}> within InputElement.tsx. As a consequence, we get an infinitive circular loop of Element->Props->Children->Element->Props->Children->Element->Props->Children->…

React seems to detect and automatically fix this infinitive loop. But when using the smaller and faster Inferno as a replacement library of React, we get a "RangeError: Maximum call stack size exceeded".

This commit fixes this bug by not attaching {...element.props} to <InputElement>.

All tests did pass and I did not notice any changes in the behaviour of the AutoComplete component. But now, AutoComplete works also with Inferno and not only with React.
2017-09-27 20:09:04 +08:00
afc163
81a8d71ec3 Fix Input className to wrapper, close #6809 2017-07-12 21:43:06 +08:00
Benjy Cui
0e5431d21b deps: upgrade antd-tools and code style 2017-05-25 16:54:15 +08:00
Mitchell Demler
fa44de3faa refactor: rearrange AbstractSelectProps so that AutoCompleteProps has access to some needed SelectProps (#6205) 2017-05-19 11:29:16 +08:00
afc163
9e018a7310 fix test case, #5999 2017-05-03 15:33:40 +08:00
RaoHai
650ab28b59 set filterOption to false
+ close #5860
2017-05-03 14:56:21 +08:00
乐仪
50b7ce55fe fix indent of AutoComplete 2017-04-22 10:57:28 +08:00
陆离
b694608af4 onKeyDown bug fix (#5766)
+ close #5487
2017-04-22 10:48:21 +08:00
Benjy Cui
50f46d0919 feat: merge Select[multiple|tags|combobox] to Select[mode], close: #5471 (#5534) 2017-03-28 21:27:58 +08:00
Benjy Cui
84d65b3f66 refactor: simplify Select relative components' code 2017-03-28 15:11:14 +08:00
Benjy Cui
8f81594f91 Refactor: introduce injectLocale (#5289)
* refactor: extract injectLocale and refactor Pagination, ref: #5103

* refactor: use injectLocale in Popconfirm, ref: #5103

* refactor: use injectLocale in TimePicker

* refactor: use injectLocale in Transfer

* refactor: use injectLocale in TreeSelect

* refactor: remove useless code in AutoComplete

* test: update snapshot
2017-03-17 15:23:25 +08:00
afc163
d1483c16c8 Fix AutoComplete children typescript type, close #5170 2017-03-06 11:18:41 +08:00
陆离
63ddf2fc8d Add Demo for Certain Category (#5105)
+ close #5095
 + close #5135
 + support OptGroup of AutoComplete
2017-03-03 22:10:21 +08:00
陆离
7a4080ec40 Fix some problems of AutoCompelete demo (#4942)
+ close #4912
2017-02-20 00:09:07 +08:00
陆离
fc3f4e1922 fix AutoComplete size (#4768)
*  fix AutoComplete size

 + close #4766

* use input mixin

* use css variables

*  use children directly instead of React.Children.toArray

 + close #4778
2017-02-09 10:45:42 +08:00
afc163
35523be6e9 Merge from master 2017-01-20 18:28:09 +08:00
陆离
46c200896f Customize Input Component of AutoComplete (#4483)
* cherry-pick

* remove useless files

* remove useless files

* Group ts

* update interface

* ReactElement
2017-01-13 21:19:23 +08:00
wallverb
c01ee02758 chore: Change AutoCompleteProps to extend SelectProps (#4565)
* Change AutoCompleteProps to extend SelectProps

* Extract common props into AbstractSelectProps
2017-01-12 09:23:56 +08:00
Wei Zhu
ccbebe60cc style: Fix jsx alignment, #3966 (#3967) 2016-11-23 17:53:10 +08:00
Benjy Cui
66f6de79ce refactor: Alert, Backtop, AutoComplete 2016-10-21 18:02:37 +08:00
yiminghe
c2d3f16dfb update tslint 2016-10-20 19:19:16 +08:00
Albert Zheng
23dd825afd 【Please review】Fixes for supporting TypeScript 2.0.3 (#3439)
* Fixes for supporting TypeScript 2.0.3

* Fixes for supporting TypeScript 2.0.3. Issue is #3358
2016-10-18 11:55:00 +08:00
Benjy Cui
2bc2ccc9c4 feat: AutoComplete.Option should be children, close: #3106 (#3120) 2016-09-22 14:40:34 +08:00
Benjy Cui
bd7e9f00c0 style: update code style 2016-09-21 11:54:53 +08:00
Benjy Cui
370a6bde52 fix: should export type 2016-09-19 10:22:52 +08:00
feng zhi hao
cad2d19be2 fix: complete loss declaration (#3068)
* complete loss declaration

* fix error in ts-lint

* fix Icon name error
2016-09-19 10:17:07 +08:00
Benjy Cui
5dcce12c2c fix: some tsc errors (#2804) 2016-08-22 17:26:14 +08:00
陆离
552fa228ee feat: AutoComplete (#2490) 2016-07-25 17:46:45 +08:00