wix / wix/react-native-ui-lib

maxChips param on ChipsInput is not respected

Open
#2,166 0 comments 0 reactions 1 assignee View on GitHub

@adids1221 is already working on this.

Since Aug 18, 2022.

bug
Dominant language
TypeScript
Stars
7.2k
Forks
748
Avg merge
2d 18h
Merged PRs (30d)
1

Description

Description

maxChips param on ChipsInput is not respected. i can put in any number of chips in there.

Related to
  • Components
  • Demo
  • Docs
  • Typings
Steps to reproduce

<Incubator.ChipsInput
maxChips={1}
multiline={false}
chips={[{ label: 'Falcon 9' }, { label: 'Enterprise' }]} />
This code should display only one chip

Expected behavior

maxChips param b respected

Actual behavior

More Info

Code snippet


Screenshots/Video
Environment
  • React Native:
  • React Native UI Lib:
Affected platforms
  • Android
  • iOS
  • Web

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.