maximilianpichler / material-ui-selectfield Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://maximilianpichler.github.io/material-ui-selectfield/
Home Page: https://maximilianpichler.github.io/material-ui-selectfield/
By default floatingLabel stays Up, it should be down. When i click the field its works great.
Hi Maximilian
Nice initiative to try by yourself, but wouldnot it be more polite and more inline with opensource mind to make a fork from my project, instead of mounting a new repo and blatantly copy-paste ?
Same with responding in my project's issues with a link here ?
Best regards,
It would be great if the select field would be the same height as in original.
You probably should write some tests.
When "selectfield" is changed the event "onChange" is not fired on multiple={false}
import React, { Component } from 'react';
import SelectField from 'material-ui-selectfield';
class DropDown extends Component {
static getElements(items) {
return items.reduce((nodes, { value, label }) => {
return [...nodes, <div key={value} value={value} label={label}>{label}</div>];
}, []);
};
render() {
const props = {
items: new Array(50).join('0').split('').map(() => {
return {
value: faker.random.uuid(),
label: faker.name.firstName(),
};
}),
onChange: () => alert(12),
multiple: false,
};
return (
<SelectField
checkPosition="left"
{...rest}
>
{DropDown.getElements(items)}
</SelectField>
);
}
}
export default DropDown;
Thanks for the fork.
We still needs more demo of usage.
ERROR in ./node_modules/material-ui-selectfield/es/SelectField.js
Module not found: Error: Can't resolve 'react-infinite' in '/***/node_modules/material-ui-selectfield/es'
Probably new users should be informed that this is no longer maintained repo
This usualy happens then props of component are changed. For example switch "multiple" to true or false and then try to select something from the list
SelectField.js:126 Uncaught TypeError: Cannot read property 'some' of null
at Object.onClick (SelectField.js:126)
at Object.ListItem._this.handleTouchTap [as onClick] (ListItem.js:243)
at EnhancedButton._this.handleTouchTap (EnhancedButton.js:146)
at Object.ReactErrorUtils.invokeGuardedCallback (ReactErrorUtils.js:69)
v1.0.18
Reproducible on demo page https://maximilianpichler.github.io/material-ui-selectfield/
Click on first example. After selection menu should self close
If there is a big list of checkboxes some times is "Reset" button needed.
Please add ability to customize footer or just another property with reset button on it.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.