glideapps / glideapps/expert-issues

[Bug] Choice Component - Clear button ("x") visible in dropdown when no value selected

Open
#93 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Summary
An "x" clear button recently appeared inside **Choice** components configured as **Dropdown** even when no value has been selected. The button is visible while the placeholder text ("Choose something") is still showing, which implies there is a value to clear when there is not. This creates visual clutter and may confuse end-users into thinking a hidden value is already set.

**Severity: Low**

## Steps to Reproduce
1. Open any screen containing a **Choice** component configured as **Dropdown**.
2. Ensure the component is bound to a non-empty data source (e.g., a table, relation, or lookup).
3. Leave the field in its default empty state (no value selected).
4. Observe the right side of the dropdown input.

## Current Behavior
An "x" clear icon is rendered inside the dropdown field even though the placeholder text is visible and no actual value has been chosen. Tapping the "x" has no effect since there is nothing to clear.

## Expected Behavior
The "x" clear button should only appear when a real value is actively selected. When the field is in its empty state (placeholder visible), the clear button should be hidden.

## Screenshots/Evidence

Image

Image

- **Observation:** "x" icon is present alongside "Choose something" placeholder text.
- **Regression timeframe:** Issue first observed afternoon of April 30, 2026, with no app-level changes deployed.

## Size Estimate
- [x] Small
- [ ] Medium
- [ ] Large

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.