bug: ion-range: Clicking/Tapping on the Last tick doesn't work

Open Beginner friendly
#30,738 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Start with the ion-range Docs Example at the snapping--ticks section and trace the range component's final tick positioning and click handling. Reproduce the issue by clicking the last tick, then verify that the final tick selects the last range option and that the relevant interaction remains usable with wider ticks.

Written by the indexing model from the issue text.

Description

triage
Prerequisites
Ionic Framework Version

v8.x

Current Behavior

The last tick has a style="left:100%" which puts it outside the clickable area. This isn't so noticeable with default styles, but making the ticks any wider makes the issue clear to users.

Image

The grabbing cursor only shows when hovering over the bar, and clicking the actual tick does nothing.

Expected Behavior

Clicking on the final tick should select the last option in the range.

Steps to Reproduce

This is reproducible with the Docs Example.

  1. Go to https://ionicframework.com/docs/api/range#snapping--ticks
  2. Click on the last tick
Code Reproduction URL

https://ionicframework.com/docs/api/range#snapping--ticks

Ionic Info

N/A

Additional Information

No response

Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
2d 20h
Merged PRs (30d)
35

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.

More from ionic-team/ionic-framework

All issues in ionic-team/ionic-framework

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.