leboncoin/spark-android

[FR]: Fix compilation errors in Chip.md example

Open

#2,104 opened on Jul 27, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Kotlin (31 forks)auto 404
componentdocumentationgood first issuepriority:HIGH

Repository metrics

Stars
 (85 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe the problem

The multiple-selection code example in Chip.md has two errors:

  1. filter.name called on a String (String has no .name property)
  2. Assignment to unionSelected which is never declared (the variable is selectedFilters)

Describe the solution

Fix both lines:

text = filter,
selectedFilters = if (selected) selectedFilters - filter else selectedFilters + filter

Additional context

Priority: High. Effort: XS.

Contributor guide