ant-design/components/dropdown
Zheeeng 24e373a812 Remove span.ant-tag-text in Tag, and remove type casting in Dropdown (#9055)
* Remove span.ant-tag-text

Warp React.ReactNode with span element is not suggested. It may cause anti-specification problem: `<span><span>I'm spec breaker</span></span>`. span is not a general tags container.
Another benefit from this change is keeping the same structure with CheckableTag.
After inspecting the removing of the style of .ant-tag-text, seems bringing no problems. The old example employeed this css class has gone long long time ago. See: 0635877a51

* Use React.Children.only api to supress type casting

By codes, the children and the overlay of Dropdown must be **single** and **valid React.ReactElement**. React.Children.only takes it and report more friendly React internal built error messages.

* Revert hack CSS styles: filling .ant-tag's block area with orphan child anchor
2018-02-04 01:29:56 -06:00
..
__tests__ Fix: Dropdown.Button not fully disabled (#9013) 2018-01-18 09:39:34 -06:00
demo contextMenu Dropdown, close #7232 2017-11-26 14:02:38 +08:00
style fix: submenu should work fine in dropdown, close: #8248 2017-11-21 10:06:26 +08:00
dropdown-button.tsx Fix: Dropdown.Button not fully disabled (#9013) 2018-01-18 09:39:34 -06:00
dropdown.tsx Remove span.ant-tag-text in Tag, and remove type casting in Dropdown (#9055) 2018-02-04 01:29:56 -06:00
index.en-US.md Fix typo 2017-12-31 18:20:24 +08:00
index.tsx export components interface (#7654) 2017-09-25 22:14:49 +08:00
index.zh-CN.md Fix typo 2017-12-31 18:20:24 +08:00