Skip to content

Commit

Permalink
fix(Input): removes minus 1 from formating input text on space (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
slhay28 authored Jul 9, 2024
1 parent 2fcce79 commit cc192d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/solid/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Input: Component<InputProps> = props => {
case 'space':
newTitle =
currentPosition > 0
? inputText.slice(0, currentPosition - 1) + ' ' + inputText.slice(currentPosition)
? inputText.slice(0, currentPosition) + ' ' + inputText.slice(currentPosition)
: ' ' + inputText;
currentPosition++;
break;
Expand Down

0 comments on commit cc192d8

Please sign in to comment.