Giter Site home page Giter Site logo

react-ui-dropdown's Introduction

Hi there ๐Ÿ‘‹

I'm a Software Engineer, Manager, Speaker, and Event Organizer with 20 years of experience in the software industry.

react-ui-dropdown's People

Contributors

zmoki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-ui-dropdown's Issues

Simple demo not working :(

Any idea why something as basic as this is not working?

               const data = [
                {
                    id: 100,
                    title: "Centaur",
                    image: "https://d30y9cdsu7xlg0.cloudfront.net/png/120146-200.png"
                },
                {
                    id: 101,
                    title: "Chimera",
                    image: "https://d30y9cdsu7xlg0.cloudfront.net/png/120147-200.png"
                },
                {
                    id: 102,
                    title: "Griffin",
                    image: "https://d30y9cdsu7xlg0.cloudfront.net/png/120148-200.png"
                },
                {
                    id: 103,
                    title: "Winged Unicorn",
                    image: "https://d30y9cdsu7xlg0.cloudfront.net/png/120156-200.png"
                },
                {
                    id: 104,
                    title: "Winged Lion",
                    image: "https://d30y9cdsu7xlg0.cloudfront.net/png/120152-200.png"
                }
            ];

            return (<div>
                <ReactUIDropdown
                    label="Myth animals"
                    initialItems={data} />
            </div>);


[Error] TypeError: undefined is not an object (evaluating 'a.PropTypes.string')
	(anonymous function) (2.5526a405.chunk.js:1:410053)
	f (localhost:1:1769)
	(anonymous function) (2.5526a405.chunk.js:1:401656)
	f (localhost:1:1769)
	(anonymous function) (2.5526a405.chunk.js:1:75024)
	f (localhost:1:1769)
	(anonymous function) (main.0eac5e25.chunk.js:1:269)
	f (localhost:1:1769)
	(anonymous function) (main.0eac5e25.chunk.js:1:4565)
	f (localhost:1:1769)
	a (localhost:1:1635)
	e (localhost:1:1498)
	Global Code (main.0eac5e25.chunk.js:1)

Cannot read property 'string' of undefined in Items

I've installed the package via yarn and no matter what my data is, it seems to crash on import.

Items.propTypes = {
   idPrefix: _react.PropTypes.string.isRequired, // this is the line from the error message
   focusedItem: _react.PropTypes.oneOfType([_react2.default.PropTypes.number, _react2.default.PropTypes.string])
};

I also get a warning on the import line that a declaration file for the package is not found.

Any ideas what might be wrong?

Fork repo, Uncaught Error: Cannot find module

Having issues trying to fork the repo. These are the steps I used.

1.Fork repo,
2. clone it,
3. Made modifications
4. push to github
5. set my package.json to use my gihub forked repo.

However when grunt is compiling it errors, and when I load my browser: I get Uncaught Error: Cannot find module "./react-ui-dropdown"

Is there something I am missing?

The fix I would like to change is, that keypress ENTER does nothing when there is nothing typed in. Secondly, I would like to try and make this a controlled input, and have values in the input box that were selected previously retrieved from a db

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.