Giter Club home page Giter Club logo

Comments (8)

MaximilianPichler avatar MaximilianPichler commented on May 24, 2024

Hey! I've fixed it in version 1.0.2 over on my fork https://github.com/MaximilianPichler/material-ui-selectfield

from material-ui-superselectfield.

shivwork avatar shivwork commented on May 24, 2024

Installed "material-ui-selectfield": "^1.0.2".Still Not working.
On Focus : -
open
Without Focus : -
sdfdsfsdff

from material-ui-superselectfield.

MaximilianPichler avatar MaximilianPichler commented on May 24, 2024

Yeah sorry I noticed that bug after releasing. Check out the demo "Floating label" here https://maximilianpichler.github.io/material-ui-selectfield/
This is version 1.0.21
If you find any more issues please open an issue over on my fork.

from material-ui-superselectfield.

shivwork avatar shivwork commented on May 24, 2024

floatingLabel not working properly in singleSelection.
By default floatingLabel stays Up, it should be down. When i click the field its works great.

from material-ui-superselectfield.

Sharlaan avatar Sharlaan commented on May 24, 2024

v1.6.1 is out, should fix this issue.
Please confirm.

from material-ui-superselectfield.

shivwork avatar shivwork commented on May 24, 2024

Still not working.
<MaterialSelectField
disabled={disabled ? disabled : false}
showAutocompleteThreshold={1}
errorText={touched && error}
floatingLabel={label}
hintText=''
value={selectedObj}
nb2show={7}
anchorOrigin={{ vertical: 'top', horizontal: 'left' }}
required={true}
onChange={(e) => changeSelectedObj(e)}
hoverColor='rgba(3, 169, 244, 0.15)'
>
{optionsList}

from material-ui-superselectfield.

Sharlaan avatar Sharlaan commented on May 24, 2024

At 1st glance, looks like you didnot read the documentation -again- :

  • required prop isnot implemented yet
  • anchorOrigin value is useless since it is the same as default value
  • {disabled ? disabled : false} --> {disabled || false} is simpler
  • when you "think" there is no option selected, did you check the value of selectedObj is null ? an empty object is still a valid non null value, so the floatingLabel will float above, while the component will show an empty field.

If the problem still persists, can you make a PR reproducing this issue ?

from material-ui-superselectfield.

Sharlaan avatar Sharlaan commented on May 24, 2024

Please check with latest version.

from material-ui-superselectfield.

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.