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.

貢獻者指南