Giter Site home page Giter Site logo

Comments (5)

LoicMahieu avatar LoicMahieu commented on June 19, 2024

Hi @id0Sch

Mmmh... I almost never use ref. I can't tell you how looks the object you get as statusBarColor and if the value and setValue() is defined. (I suppose the problem is here ?)
I generally only use onChange() for updating the internal state of a "form" on top of the field.

I could take a look when I will have time to but feel free to investigate and submit a PR if need!

from material-ui-color-picker.

id0Sch avatar id0Sch commented on June 19, 2024

I think the object that is returned from the ref should be compliant to how you'd interact with a regular material-ui TextField, and indeed the problem is here.
since implementing the colorPicker is further down my todo list, i'll get to it later, for now a simple textField does the trick :)

I'll keep you posted if I have a breakthrough,
thanks for the quick reply!

from material-ui-color-picker.

dingjibang avatar dingjibang commented on June 19, 2024

+1

from material-ui-color-picker.

id0Sch avatar id0Sch commented on June 19, 2024

@LoicMahieu - I don't know how to work with recompose but it seems that this is where the bug is, i tried deleting the "withState" and i was able to control the textFields value from the ref , but the colorPicker didn't have access to setValue.
maybe it should be internally and externally accessible.
I would be happy to solve it, but unfortunately i have no experience with recompose yet.

from material-ui-color-picker.

LoicMahieu avatar LoicMahieu commented on June 19, 2024

from material-ui-color-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.