Skip to content

Commit

Permalink
Fix issue of select items not being rendered.
Browse files Browse the repository at this point in the history
When trying out demo, only the first few items were being rendered propery. Checked to see if
it had to do with the loading order of the css packages, but that wasn't it. Demo was fixed
by building them with the demo package. In order to do this I removed the include property to allow
webpack to pull from node_modules.
  • Loading branch information
agirton committed Oct 31, 2016
1 parent 74e10fe commit 05a02e9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
<link type="image/x-icon" rel="shortcut icon" />

<link rel="stylesheet" type="text/css" href="https://unpkg.com/react-select/dist/react-select.css" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/react-virtualized/styles.css" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/react-virtualized-select/styles.css" />
<link rel="stylesheet" type="text/css" href="./styles.css" />
<link rel="stylesheet" type="text/css" href="static/styles.css" />
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 2 additions & 0 deletions source/demo/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import VirtualizedSelect from 'react-virtualized-select'
import createFilterOptions from '../index'
import 'react-virtualized/styles.css'
import 'react-virtualized-select/styles.css'

const STRINGS = ['foo', 'bar', 'baz', 'qux']

Expand Down
3 changes: 1 addition & 2 deletions webpack.config.demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ module.exports = {
},
{
test: /\.css$/,
loaders: ['style', 'css?importLoaders=1'],
include: path.join(__dirname, 'styles.css')
loaders: ['style', 'css?importLoaders=1']
}
]
}
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ module.exports = {
},
{
test: /\.css$/,
loaders: ['style', 'css?importLoaders=1'],
include: path.join(__dirname, 'source')
loaders: ['style', 'css?importLoaders=1']
}
]
},
Expand Down
4 changes: 1 addition & 3 deletions webpack.config.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ module.exports = {
},
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('css-loader!autoprefixer-loader?{browsers:["last 2 version", "Firefox 15"]}'),
include: path.join(__dirname, 'source')

loader: ExtractTextPlugin.extract('css-loader!autoprefixer-loader?{browsers:["last 2 version", "Firefox 15"]}')
}
]
}
Expand Down

0 comments on commit 05a02e9

Please sign in to comment.