Comments (7)
Ok just made a release which should be available in next 30mins.
If you specify BOTH floatingLabel
and hintText
, then the floatingLabel will remain fixed no matter what.
from material-ui-superselectfield.
Indeed i found out Travis failed to build ...
so the v1.9.4 has the updated src, but the old built lib .... sigh
from material-ui-superselectfield.
ok, try v1.9.5
from material-ui-superselectfield.
Hello,
Thanks for your interest in my component.
I'm slightly confused in what you want exactly :
floatingLabelFixed
just prevents the label shrinking animation depending if value is null or not. It has nothing to do with label styling.- you wrote being concerned with styling, look being different from official M-UI v0.x version
Can you be more explicit please ?
PS: there is a floatingLabelStyle
prop in readme
from material-ui-superselectfield.
Hi,
Thanks for responding.
So with current select field I have the prop floatingLabelFixed={true}
which, as you know, keeps the floating label positioned above the input regardless of whether or not value is null.
With this prop set I then have hint text in the component which is how all my selects and text fields are setup.
I just want to replicate this with your component.
In the example picture, the top one is a normal select, bottom is your component:
So is it possible to have "Work Item Tool" always positioning like the following?
On the styling; I have to manually add a margin of 20px to the top of the element to have a similar height to normal M-UI v0.x select - the M-UI v0.x select has same height regardless of floating label present or not. I am assuming when I have a fixed floating label it will all look OK though.
from material-ui-superselectfield.
Hi,
Appreciate the fast turnaround.
Stupid question - how do I get this latest change? When I npm i material-ui-superselectfield
I get the latest released version [email protected]
but when I use it as follows:
import SuperSelectField from 'material-ui-superselectfield';
...
renderSelect = list => {
return _.map(list, (tool,i) => {
return <div key={i} value={tool[globals._FIELD]}>{tool['human']}</div>
})
}
...
<SuperSelectField
name='tool'
floatingLabel='Work Item Tool(s)'
hintText='Select a tool'
value={tool}
onChange={handleChange}
style={{width: 256, marginTop: 20}}
>
{
:: this.renderSelect(newDataSource)
}
</SuperSelectField>
resulting in the following:
so I'm not seeing the change that you implemented I think...
sorry!
from material-ui-superselectfield.
Thanks!
from material-ui-superselectfield.
Related Issues (20)
- Disabled is not showing the value
- Package as of 1.9.2 is shows as vulnerable on snyk HOT 2
- Automatically scroll to selected element?
- Upgrade to material-ui v1.2.0 HOT 2
- Add event to onSelect function
- useLayerForClickAway not working? HOT 3
- Menu is not opened on arrow click HOT 3
- Changelog? HOT 3
- Keyboard Shortcut for Selecting a Focused item not working/present HOT 1
- Full height selection HOT 1
- Component is not compatible with React 15
- Delay on searching when scrolling to bottom
- [email protected] has incorrect peer dependency react@>= 15 < 16.3 HOT 2
- Usage with redux forms: Value error on multiple selection
- fullWidth property?
- Upgrade to material-ui v3.9.0 HOT 2
- Blank screen HOT 1
- Several Issues found
- Name attribute not showing up in DOM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui-superselectfield.