55 |
58 |
59 |
{
62 | setDropdownPosition(getDropdownPosition(event.target))
63 | toggleProps.onClick(event)
64 | }}
65 | >
66 | {inputValue}
67 |
68 |
69 |
76 | {renderItems()}
77 |
78 |
79 | )
80 |
81 | function renderItems() {
82 | if (!isOpen) {
83 | return null
84 | }
85 |
86 | if (isLoading) {
87 | return {loadingLabel}...
88 | }
89 |
90 | if (items.length === 0) {
91 | return