Skip to content

Commit

Permalink
fix: text & number input selection, disable aria press props
Browse files Browse the repository at this point in the history
  • Loading branch information
lovrozagar committed Jul 6, 2024
1 parent c0a3285 commit 3256236
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@renderui/core",
"version": "1.3.7",
"version": "1.3.8",
"private": false,
"description": "React UI library with highly modular and ready-out-of-the-box components",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/components/number-input/hooks/use-number-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function useNumberInput(props: NumberInputProps, ref: React.Ref<NumberInputRef>)
onClick: inputContainerOnClick,
isTextInput = true,
isFocusWithin = true,
isUsingAriaPressProps = false,
...restInputContainerProps
} = getOptionalObject(inputContainerProps)

Expand Down Expand Up @@ -130,6 +131,7 @@ function useNumberInput(props: NumberInputProps, ref: React.Ref<NumberInputRef>)
isTextInput,
isFocusWithin,
isDisabled,
isUsingAriaPressProps,
'data-disabled': isDisabled,
'data-read-only': isReadOnly,
'data-invalid': isInvalid,
Expand Down
2 changes: 2 additions & 0 deletions src/components/text-input/hooks/use-text-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function useTextInput(props: TextInputProps, ref: React.Ref<TextInputRef>) {
onPointerDown: inputContainerOnPointerDown,
isFocusWithin = true,
isTextInput = true,
isUsingAriaPressProps = false,
...restInputContainerClassName
} = getOptionalObject(inputContainerProps)

Expand Down Expand Up @@ -120,6 +121,7 @@ function useTextInput(props: TextInputProps, ref: React.Ref<TextInputRef>) {
isTextInput,
isFocusWithin,
isDisabled,
isUsingAriaPressProps,
'data-disabled': isDisabled,
'data-readonly': isReadOnly,
'data-invalid': isInvalid,
Expand Down

0 comments on commit 3256236

Please sign in to comment.