Skip to content

Go-to page doesn't work if you hit enter #39

@AD7six

Description

@AD7six

The goto page input, isn't in a form and only has a click handler:
https://github.com/DDMAL/diva.js/blob/master/js/diva.js#L885

Aside from being invalid html, it'd be a better idea to make a form, not a div, put the input inside it - and attach a submit handler to the form. This would remove the mouse dependency on the goto page input.

To reproduce:

Expected result - goto entered page

Actual result - sweet diddly

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions