<input type="number"> misses text-entry leaf sizing in layout

Open Beginner friendly
#1,675 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@GoCoder7 is already working on this.

Since Nov 19, 2026.

  • #1676 by @GoCoder7 — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
frontend

Research direction

In packages/blitz-dom/src/layout/mod.rs, inspect the text-entry leaf-sizing match and compare it with packages/blitz-dom/src/layout/construct.rs. Add "number" to the sizing cases for text-entry controls. Done means number inputs receive intrinsic content height without an explicit height style.

Written by the indexing model from the issue text.

Description

packages/blitz-dom/src/layout/construct.rs treats <input type="number"> as a text-entry control (create_text_editor) with no Taffy child nodes, and accessibility.rs and events/keyboard.rs likewise handle "number" alongside other text-entry input types.

However, the text-entry leaf-sizing branch in packages/blitz-dom/src/layout/mod.rs:

None | Some("text" | "password" | "email" | "tel" | "url" | "search") => {

omits "number", so <input type="number"> falls through to _ => {} and receives 0px intrinsic content height unless a height is explicitly styled.

Dominant language
Rust
Stars
4.5k
Forks
281
Avg merge
6h 6m
Merged PRs (30d)
184

Getting set up

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 DioxusLabs/blitz

All issues in DioxusLabs/blitz

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.