Skip to content

Commit

Permalink
fix counter prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus authored Nov 22, 2021
1 parent 0599ba3 commit dd5fc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/page/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function promptCreateCounter(parentElement) {

promptOptions.value = validateCounterInput(promptOptions.value);

const dataElement = promptCreateInput();
const dataElement = promptCreateInput(promptOptions);
dataElement.onkeypress = (event) => {
if (Number.isNaN(Number.parseInt(event.key)) && event.key !== "Backspace" && event.key !== "Delete")
return false;
Expand Down

0 comments on commit dd5fc8e

Please sign in to comment.