question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`InputBase` with name as value

See original GitHub issue

Why InputBase: https://github.com/stackworx/formik-material-ui/blob/master/src/InputBase.tsx

export const fieldToInputBase = ({
  field,
  form: { isSubmitting },
  disabled,
  ...props
}: InputBaseProps): MuiInputBaseProps => {
  return {
    disabled: disabled != undefined ? disabled : isSubmitting,
    ...props,
    ...field,
    value: field.name,
  };
};

inputs field name as its value. According to Material UI component demos, this is not a intended behaviour: https://material-ui.com/components/text-fields/#customized-inputs

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JorgeVVcommented, Aug 5, 2019

InputBase is currently unusable. PR #91 fixes this bug. Is there any reason why it has not been merged? 😅

0reactions
cliedemancommented, Aug 21, 2019

Release in 0.22

Read more comments on GitHub >

github_iconTop Results From Across the Web

`InputBase` with name as value · Issue #90 - GitHub
When we provide input element name as value it makes the field read only. And this is supposed to be used as a...
Read more >
Get InputBase value out from the same component
First, you functional component should start with a capital letter, so change your declaration to: const StationSelection = .
Read more >
InputBase API - Material UI - MUI
Name Type Default autoComplete string autoFocus bool false classes object
Read more >
InputBase<TValue> Class - Microsoft Learn
Gets or sets the display name for this field. This value is used when generating error messages when the input value fails to...
Read more >
Class: inputBase - Oracle
When value changes as a result of user interaction all messages are cleared, including custom messages added by the app, and full validation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found