mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 12:31:41 +08:00
chore: make go-to-page input number-like (#3743)
This commit is contained in:
parent
598ff21d7d
commit
d35bb873a8
|
@ -187,9 +187,12 @@ export default class UserListPage extends AdminPage {
|
|||
/>
|
||||
<span class="UserListPage-pageNumber">
|
||||
{app.translator.trans('core.admin.users.pagination.page_counter', {
|
||||
// https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/
|
||||
current: (
|
||||
<input
|
||||
type="text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
value={this.loadingPageNumber + 1}
|
||||
aria-label={extractText(app.translator.trans('core.admin.users.pagination.go_to_page_textbox_a11y_label'))}
|
||||
autocomplete="off"
|
||||
|
|
Loading…
Reference in New Issue
Block a user