Commit Graph

184 Commits

Author SHA1 Message Date
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
偏右
759b0bb821 seperate reset styles (#7682)
* seperate reset styles

* not reset ul/ol/p/heading

* revert reset.less idea

* move label style into ant-form-item, #5851

* revert reset.less idea

* update base.less

* Better typography from bootstrap@4

use reboot replace normalize

ref:
b4d84b9cdf/scss/_reboot.scss

close #6162
2017-09-22 18:33:29 +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
Benjy Cui
200b88246f docs: update docs format 2017-02-13 10:55:53 +08:00
陆离
49bbb2225f Add Demo of Uncertain Category (#4828)
*  Add Demo of Uncertain Category

 + close #4736

* add class prefix and cut lines
2017-02-10 22:59:28 +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
Benjy Cui
d2b8d65c87 style: update code style to please lint, close: #2179 2017-02-06 12:09:58 +08:00
afc163
f2bb4afd4d Merge from master 2017-01-27 17:23:51 +08:00
Wei Zhu
77b78a9389 docs: Unify type naming (#4636)
* Unify name of ReactNode type in document

* Lowser all string type name

* Lowercase all number type name

* Lowercase all boolean type name

* Unify array type

* Lowercase all object type name

* Unify mutilple types
2017-01-20 20:10:50 +08:00
afc163
67da059874 fix demo language 2017-01-20 18:39:13 +08:00
afc163
35523be6e9 Merge from master 2017-01-20 18:28:09 +08:00
陆离
bee522133e docs: Autocomplete optionLabelProp document (#4663)
close #4656
2017-01-20 16:16:31 +08:00
Benjy Cui
3e17551b7e site: improve build speed 2017-01-19 15:22:53 +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
07103b9fb6 Don't ignore test files. 2016-12-14 14:48:09 +08:00
Wei Zhu
17a0a33283 Restructure tests. 2016-12-14 14:41:39 +08:00
afc163
0e1f154aab Add doc and demo for AutoComplete[placeholder], close #4044 2016-12-03 15:31:41 +08:00
Will Chen
6b774a1343 docs: improve docs' detail (#4050) 2016-11-29 17:13:24 +08:00
Wei Zhu
ccbebe60cc style: Fix jsx alignment, #3966 (#3967) 2016-11-23 17:53:10 +08:00
ddcat1115
0baef0627e docs: 调整组件导航结构 (#3758)
- Layout 更名为 Grid
2016-11-09 14:43:32 +08:00
Meck
984a03e203 docs: add a note for AutoComplete's API 2016-11-01 09:50:42 +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
0981dd46c7 fix: should not import less file firectly 2016-10-13 16:19:16 +08:00
陆离
1ad99cb095 feat: Exposing onSelect API of AutoComplete Component (#3320) 2016-10-08 11:20:53 +08:00
Benjy Cui
6efadb7988 docs: update docs for AutoComplete, ref: #3295 2016-10-07 20:22:46 +08:00
Benjy Cui
2bc2ccc9c4 feat: AutoComplete.Option should be children, close: #3106 (#3120) 2016-09-22 14:40:34 +08:00
Benjy Cui
c1d71acfc7 docs: update demos of AutoComplete, close: #3106 2016-09-21 17:14:58 +08:00
Benjy Cui
bd7e9f00c0 style: update code style 2016-09-21 11:54:53 +08:00
Benjy Cui
3f67fd3f9f docs: update docs details 2016-09-21 11:28:38 +08:00
Benjy Cui
1100acd26e docs: fix AutoComplete demo, close: #3077 2016-09-19 17:08:18 +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
afc163
0e6f677ff9 Fix doc headings 2016-09-10 13:43:30 +08:00
Benjy Cui
cb367f3f35 site: update site details 2016-09-08 16:53:50 +08:00
Andrew Murray
0d00c5fb6c docs: Fixed typos (#2921) 2016-09-01 18:12:12 +08:00
afc163
77949bb9e3 upgrade eslint-config, close #2811 2016-08-23 21:00:35 +08:00
Benjy Cui
5dcce12c2c fix: some tsc errors (#2804) 2016-08-22 17:26:14 +08:00
Benjy Cui
331b2fdf73 chore: fix 2016-07-25 17:54:09 +08:00
陆离
552fa228ee feat: AutoComplete (#2490) 2016-07-25 17:46:45 +08:00