Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Inconsistent behavior of inputProps #27

Open
altavir opened this issue May 10, 2020 · 1 comment
Open

Inconsistent behavior of inputProps #27

altavir opened this issue May 10, 2020 · 1 comment

Comments

@altavir
Copy link

altavir commented May 10, 2020

Switch element exposes input properties as INPUT.() -> Unit, while TextField exposes them as InputElementBuilder<InputProps>.() -> Unit. The resulting code looks different for different elements which does not look good. It seems like Switch way is preferable.

Actually, these two lines:

    var Tag.InputProps: RProps? by materialProps
    var Tag.inputProps: RProps? by materialProps

look really uncomfortable.

@altavir
Copy link
Author

altavir commented May 10, 2020

It seems like this one is a problem of Material-UI, not the wrapper. Still, for those not familiar with it, it is really confusing. I think that the difference should be documented.

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

No branches or pull requests

1 participant