Commit Graph

89 Commits

Author SHA1 Message Date
afc163
43d8c6ad37 Fix input height in AutoComplete 2017-10-17 15:19:38 +08:00
afc163
942ea41b02 update snapshot for new jest 2017-10-09 13:32:11 +08:00
afc163
95c72958ca Fix AutoCompelete layout, close #7800 2017-10-08 15:22:24 +08:00
afc163
76a972e062 Fix AutoComplete snapshot 2017-09-30 21:22:11 +08:00
afc163
76a30a7686 Fix props passing of AutoComplete, ref #7742 2017-09-30 21:17:49 +08:00
afc163
ca255cc547 Tweak AutoComplete input line height 2017-09-27 20:13:01 +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
Wei Zhu
250c7a9c68 Revert "Mock rc-trigger"
This reverts commit 9d2c91598b.
2017-09-15 16:42:25 +08:00
Wei Zhu
9d2c91598b Mock rc-trigger
Ref #5522
2017-09-15 16:14:26 +08:00
Wei Zhu
bac4d04844 docs: typo 2017-09-01 11:35:30 +08:00
Wei Zhu
ad3e49e397 docs: Add backfill to AutoComplete 2017-09-01 11:33:11 +08:00
Benjy Cui
e061ada71a test: fix CI 2017-08-17 15:33:26 +08:00
Benjy Cui
26d746bd8f fix: should support child.ref in AutoComplete, close: #6814 (#7237) 2017-08-17 13:09:18 +08:00
neekey
7e522291c8 add unit px to all less value, make them explicit 2017-07-17 17:44:40 +10:00
Benjy Cui
2413c6af61 fix: make loading work with icon only button in button group, close: #6822 2017-07-14 15:26:55 +08:00
afc163
ca89227568 test: fix snapshot 2017-07-12 21:44:46 +08:00
afc163
81a8d71ec3 Fix Input className to wrapper, close #6809 2017-07-12 21:43:06 +08:00
Graeme Yeates
7b916da2ae Use input-padding-horizontal to control autocomplete placeholder placing 2017-06-07 13:40:33 -04:00
afc163
14844eb0e0 Fix AutoComplete and Input Group vertical align issue 2017-05-28 15:27:55 +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
Benjy Cui
12a6060304 docs: fix code style 2017-05-15 14:37:22 +08:00
陆离
158536bbd9 Autocomplete height style fix (#6059)
+ close #6058
2017-05-09 13:36:37 +08:00
kossel
169e0f9762 fix: issue 5834, autocomplete is not being decorated (#6018) 2017-05-05 14:40:57 +08:00
afc163
9e018a7310 fix test case, #5999 2017-05-03 15:33:40 +08:00
afc163
290a779916 fix test case, #5999 2017-05-03 15:22:01 +08:00
RaoHai
650ab28b59 set filterOption to false
+ close #5860
2017-05-03 14:56:21 +08:00
Wei Zhu
07072fc3b1 docs: Document AutoComplete[onSearch]
Related: #5610
2017-04-22 22:52:37 +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
陆离
fda4e8414d Autocomplete clear icon bug (#5636)
+ close #5634
2017-04-05 17:51:51 +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
Qingrong Ke
8afc2e9e95 Fix 5322 (#5379)
* Input: fix #5322

* Refactor preSuffix to affix

* Update tests and demos

* Refactor preSuffix to affix
2017-03-18 21:26:42 +08:00
Wei Zhu
f6b1e942e3 Jest 19 (#5361)
* Upgeade to jest 19

* Use jest.spyOn
2017-03-17 18:56:30 +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
7bc2b1dbff fix AutoComplete extra box-shadow 2017-03-14 11:24:38 +08:00
afc163
a0cdce4d00 fix test case 2017-03-10 19:22:18 +08:00
afc163
24f9c24f48 Improve AutoComplete demo 2017-03-06 17:56:50 +08:00
afc163
d1483c16c8 Fix AutoComplete children typescript type, close #5170 2017-03-06 11:18:41 +08:00
Wei Zhu
e8ff1f25c4 Add snapshot 2017-03-05 19:29:33 +08:00
afc163
70e135ceb4 Fix AutoComplete alignment and height style in form item, close #5139 2017-03-05 14:43:14 +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
Benjy Cui
7c564af6e4 Revert "css: adjust alignment in Select & AutoComplete, close: #5088"
This reverts commit c01f24750a.
2017-02-28 15:46:45 +08:00
Benjy Cui
c01f24750a css: adjust alignment in Select & AutoComplete, close: #5088 2017-02-28 14:30:00 +08:00
Benjy Cui
29ebf22529 docs: update docs for AutoComplete, close: #5006 2017-02-23 10:02:10 +08:00
陆离
01086d56e5 shoud not have border around button (#4967) 2017-02-20 17:47:26 +08:00
陆离
7a4080ec40 Fix some problems of AutoCompelete demo (#4942)
+ close #4912
2017-02-20 00:09:07 +08:00
Wei Zhu
eb29fdada3 docs: Rewrite AutoComplete demos to ES6 component 2017-02-19 20:12:41 +08:00
陆离
135fd52afb docs: AutoComplete document and demo improvement (#4840)
*  AutoComplete document and demo improvement

 + add a non-case-sensitive demo, close #4834.
 + remove confusing descriptions from document, close #4805.

* add snapshot
2017-02-13 15:45:49 +08:00