Select text in page number input when clicked
Fix the debounce function