leboncoin/spark-android

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

已关闭

#2,104 创建于 2026年7月27日

 (0 条评论) (0 个反应) (0 位负责人)Kotlin (31 个派生)auto 404
componentdocumentationgood first issuepriority:HIGH

仓库指标

星标
 (85 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南