[PR #269] [MERGED] feat: add index control in the select component #410

Closed
opened 2026-03-02 23:46:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/269
Author: @aprogramq
Created: 11/4/2025
Status: Merged
Merged: 11/5/2025
Merged by: @kommander

Base: mainHead: main


📝 Commits (5)

  • b43d862 feat: add index control in the select component
  • e5b9a5f Created comprehensive Select component tests
  • 81e145c Fixed Select index clamping to [0, length-1]
  • 64ced1c Remove selectedIndex from SelectProps type
  • 823bb9c Updated Select tests to match current behavior

📊 Changes

2 files changed (+812 additions, -22 deletions)

View changed files

packages/core/src/renderables/Select.test.ts (+777 -0)
📝 packages/core/src/renderables/Select.ts (+35 -22)

📄 Description

Issue #229


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/269 **Author:** [@aprogramq](https://github.com/aprogramq) **Created:** 11/4/2025 **Status:** ✅ Merged **Merged:** 11/5/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (5) - [`b43d862`](https://github.com/anomalyco/opentui/commit/b43d86254dbe042297907318587c81b7e3a592cb) feat: add index control in the select component - [`e5b9a5f`](https://github.com/anomalyco/opentui/commit/e5b9a5fa5f3eff36e76801af0faa69120c431471) Created comprehensive Select component tests - [`81e145c`](https://github.com/anomalyco/opentui/commit/81e145c43caf56ead59a906c659518c9bb3704f8) Fixed Select index clamping to [0, length-1] - [`64ced1c`](https://github.com/anomalyco/opentui/commit/64ced1c29e198d39b96a56e5d6323c90f53581ee) Remove selectedIndex from SelectProps type - [`823bb9c`](https://github.com/anomalyco/opentui/commit/823bb9c566c19882472ed19d8fcbce22a3a72ced) Updated Select tests to match current behavior ### 📊 Changes **2 files changed** (+812 additions, -22 deletions) <details> <summary>View changed files</summary> ➕ `packages/core/src/renderables/Select.test.ts` (+777 -0) 📝 `packages/core/src/renderables/Select.ts` (+35 -22) </details> ### 📄 Description Issue #229 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#410
No description provided.