react-material-components-web icon indicating copy to clipboard operation
react-material-components-web copied to clipboard

[common] Possible conflict of adapter context

Open Hardtack opened this issue 8 years ago • 0 comments

We always use adapterfor name of adapter context.

It can occur conflict of adapter when nesting different@react-material components.

<TextField>
  <Input>
  </Input>
  <Checkbox>
    <NativeControl ... />
    ...
    <Input ... /> {/* This Input component will receive checkbox's adapter from the context */}
  </Checkbox>
</TextField>

We may have to add prefix for each context names of components. adapter -> textfieldAdapter

Hardtack avatar Feb 16 '17 04:02 Hardtack