Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slug input #8888

Merged
merged 2 commits into from Oct 18, 2021
Merged

Fix slug input #8888

merged 2 commits into from Oct 18, 2021

Conversation

azrikahar
Copy link
Contributor

@azrikahar azrikahar commented Oct 18, 2021

fixes #8883

Reported bugs

  1. Cannot move text cursor

  2. Backspace causes trailing dash to be removed as well

    This is because the Slugify package ran on keypress (backspace in this case), and automatically trimmed the trailing dash when it was qwe-.

    o2Mx5oyLT7

Solution

  • Added arrow keys to allowed list of systemKeys

    ZkSPblPSIk

  • Added preserveTrailingDash: true option (which was added fairly recently, thus the reason why is was not implemented when slug input feature was added)

    p4ujpr1KT1

@azrikahar azrikahar self-assigned this Oct 18, 2021
@azrikahar azrikahar added this to the v9.0.0-rc.99 milestone Oct 18, 2021
@azrikahar azrikahar changed the title Issue/8883 Fix slug input Oct 18, 2021
@rijkvanzanten rijkvanzanten merged commit e3aa9fa into main Oct 18, 2021
@rijkvanzanten rijkvanzanten deleted the issue/8883 branch October 18, 2021 16:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot move cursor or select text with keyboard on a slug input
2 participants