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

Raw inputs are not given a name prop #141

Closed
markerikson opened this issue Oct 1, 2020 · 1 comment · Fixed by #142
Closed

Raw inputs are not given a name prop #141

markerikson opened this issue Oct 1, 2020 · 1 comment · Fixed by #142
Milestone

Comments

@markerikson
Copy link

The TS typedefs say that RawInputProps includes a name field:

interface RawInputProps<T, K extends keyof T, RawValue> {
name: Extract<K, string>;
value: StateValues<T>[K];
onChange(rawValue: RawValue): any;
onBlur(...args: any[]): any;
}

However, that name field is not currently included in the props object:

if (isRaw) {
return {
onChange: inputProps.onChange,
onBlur: inputProps.onBlur,
value: inputProps.value,
};
}

Can we get that field added in to match the typedefs?

@wsmd wsmd added the in progress This issue is currently under development label Oct 3, 2020
@wsmd wsmd closed this as completed in #142 Oct 4, 2020
@wsmd wsmd removed the in progress This issue is currently under development label Oct 4, 2020
@wsmd wsmd added this to the 0.13.2 milestone Oct 4, 2020
@wsmd
Copy link
Owner

wsmd commented Oct 4, 2020

Should be now fixed in 0.13.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants