Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Create " text infront of my data in dropdown field #114

Open
FloWachter opened this issue Feb 11, 2023 · 1 comment
Open

"Create " text infront of my data in dropdown field #114

FloWachter opened this issue Feb 11, 2023 · 1 comment

Comments

@FloWachter
Copy link

When updating the items={data} dynamic. I get a text in front of the data.
image

@panchicore
Copy link

This happens when the items pickerItems are loaded after the component renders them.

I had to apply a conditional render to avoid that.

{pickerItems.length > 0 && (
        <CUIAutoComplete
          label=""
          placeholder="Type a Business Unit"
          onCreateItem={handleCreateItem}
          items={pickerItems}
          selectedItems={selectedItems}
          onSelectedItemsChange={changes => handleSelectedItemsChange(changes)}
          hideToggleButton={true}
        />
      )}

How did you fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants