question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Antd Component ( Select.Option, Form.Item, Menu.Item .eg) only render first child

See original GitHub issue

I have some antd component only render first child, for example:

 <Select>
    <Select.Option>1</Select.Option>
    <Select.Option>2</Select.Option>
    <Select.Option>3</Select.Option>
  </Select>

only option1 has render, other options not render

Antd https://ant.design/index-cn

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
zhaohongyancommented, Mar 6, 2021

React in Vue - without the Vue plugin

This way is OK!

Use vuera/babel plugin has problem.

0reactions
zhaohongyancommented, Nov 23, 2021

是的

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select - Ant Design
Select component to select value from options. ... A dropdown menu for displaying choices - an elegant alternative to the native ... Custom...
Read more >
How to get value from Select/Option component from Ant design
Here is the code I am using. import React from "react"; import { Form, Input, Button, Select } from "antd"; const { Option...
Read more >
A List of antd 's components that cannot work with HOC #4853
MenuItem, cannot be wrapped for keyboard operations rely on instance. ... Option , for Select depends on key prop on Option. Descriptions.
Read more >
Select - Ant Design - A UI Design Language
Property Description Type Default allowClear Show clear button. boolean false autoFocus Get focus by default boolean false defaultActiveFirstOption Whether active first option by default boolean true...
Read more >
Customize the Ant Design Select Component - Level Up Coding
Properly align the text in the Select options; Only show the description (i.e. ... This will allow our component to render the first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found