Skip to content

Commit

Permalink
fix: Input should start with undefined, same as textarea (#30534)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Monahan <seanmonahan@microsoft.com>
  • Loading branch information
EHF32 and spmonahan committed Feb 27, 2024
1 parent 5b59535 commit 90b66ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Input should start with undefined, same as textarea",
"packageName": "@fluentui/react-input",
"email": "angel6v3@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const useInput_unstable = (props: InputProps, ref: React.Ref<HTMLInputEle
const [value, setValue] = useControllableState({
state: props.value,
defaultState: props.defaultValue,
initialState: '',
initialState: undefined,
});

const nativeProps = getPartitionedNativeProps({
Expand Down

0 comments on commit 90b66ca

Please sign in to comment.