It has various incompatibilities, such as setValue not being chainable and having no focus method.
Also, validation should be optional.
It has various incompatibilities, such as setValue not being chainable and having no focus method.
Also, validation should be optional.
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T55613 Create dedicated input methods for transclusion parameters (using "Param#type" from TemplateData) | |||
| Open | None | T124850 Create dedicated input methods for "number" transclusion parameters | |||
| Resolved | • Prtksxna | T130434 Break up TextInputWidget | |||
| Resolved | Mooeypoo | T124856 NumberInputWidget is not actually an InputWidget | |||
| Resolved | • Prtksxna | T132488 Disabled NumberInputWidget takes scrolling (touchpad, scrollwheel) into account when it shouldn't | |||
| Resolved | • Prtksxna | T132489 NumberInputWidget: Triage changing `type=text` to `type=number` |
Change 268375 had a related patch set uploaded (by Prtksxna):
OO.ui.NumberInputWidget: Extend InputWidget instead of Widget
Doing this is a bit tricky since the NumberInputWidget uses the TextInputWidget's validity methods. This makes it hard for it to use its own normal <input> element. I think apart from the hack above we have two options:
Change 349125 had a related patch set uploaded (by Mooeypoo):
[oojs/ui@master] NumberInputWidget: Remake as an actual TextInputWidget child
@Prtksxna Are there considerations from your side about the latest patch, that might not have been resolved as https://gerrit.wikimedia.org/r/#/c/284168/ (I94e35d) hasn't got merged yet?
I think we're good. I was planning on making NumberInputWidget inherit from InputWidget in which case, I am not sure why I added that issue/patch as a blocker. @Mooeypoo's patch on the other hand makes it inherit from TextInputWidget, while this should not be a problem, it gives NumberInputWidget some unnecessary config params.
Change 349125 merged by jenkins-bot:
[oojs/ui@master] NumberInputWidget: Remake as an actual TextInputWidget child