We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<InputGuesser multiline>
API Platform version(s) affected: 5.0.0
Description
InputGuesser is supposed to pass down all the props it receives to the guessed input. So it must accept all the possible props of all possible inputs.
InputGuesser
This works fine for many props (label, readOnly, etc) but not for multiline:
label
readOnly
multiline
How to reproduce
Write the following code:
import { EditGuesser, InputGuesser } from "@api-platform/admin"; export const BookEdit = () => ( <EditGuesser warnWhenUnsavedChanges> <InputGuesser source="isbn" label="ISBN" /> <InputGuesser source="title" /> <InputGuesser source="author" /> <InputGuesser source="description" multiline /> <InputGuesser source="publicationDate" /> </EditGuesser> );
Possible Solution
Fix the types!
The text was updated successfully, but these errors were encountered:
Fix InputGuesser Prop type refuses multiline prop
c6b0ece
Closes #574
fzaninotto
Successfully merging a pull request may close this issue.
API Platform version(s) affected: 5.0.0
Description
InputGuesser
is supposed to pass down all the props it receives to the guessed input. So it must accept all the possible props of all possible inputs.This works fine for many props (
label
,readOnly
, etc) but not formultiline
:How to reproduce
Write the following code:
Possible Solution
Fix the types!
The text was updated successfully, but these errors were encountered: