Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Select.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {PropTypes} from 'react';
import ReactDOM from 'react-dom';
import { KeyCode } from 'rc-util';
import KeyCode from 'rc-util/lib/KeyCode';
import classnames from 'classnames';
import assign from 'object-assign';
import Animate from 'rc-animate';
Expand Down
4 changes: 2 additions & 2 deletions src/SelectTrigger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classnames from 'classnames';
import Trigger from 'rc-trigger';
import Tree, { TreeNode } from 'rc-tree';
import { loopAllChildren, flatToHierarchy, getValuePropValue, labelCompatible } from './util';
import rcUtil from 'rc-util';
import toArray from 'rc-util/lib/Children/toArray';

const BUILT_IN_PLACEMENTS = {
bottomLeft: {
Expand Down Expand Up @@ -231,7 +231,7 @@ const SelectTrigger = React.createClass({

const recursive = children => {
// 注意: 如果用 React.Children.map 遍历,key 会被修改掉。
return rcUtil.Children.toArray(children).map(child => {
return toArray(children).map(child => {
if (child && child.props.children) {
// null or String has no Prop
return <TreeNode {...child.props} key={child.key}>{recursive(child.props.children)}</TreeNode>;
Expand Down