Skip to content

Commit

Permalink
Renamed a playground variable to avoid a S/FF bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Apr 19, 2017
1 parent 2462bea commit 2479927
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Thanks for using react-virtualized! :)
Before creating an issue...

# Are you asking a question?
Please don't file Github issues to ask questions. Use Stack Overflow with a #react-virtualized tag [http://stackoverflow.com/questions/tagged/react-virtualized] or ask in the react-virtualized Slack channel [https://react-virtualized.now.sh].
Please don't file GitHub issues to ask questions. Use Stack Overflow with a #react-virtualized tag [http://stackoverflow.com/questions/tagged/react-virtualized] or ask in the react-virtualized Slack channel [https://react-virtualized.now.sh].

# Are you reporting a bug or runtime error?
Please include either a failing unit test or a Plnkr demonstrating the bug you are reporting. You can start by forking this Plnk! https://plnkr.co/edit/6syKo8cx3RfoO96hXFT1
Expand All @@ -14,4 +14,4 @@ You may also find the online Babel tool (https://babeljs.io/repl/) quite helpful
Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:
* What's your use case? (Tell me about your application and what problem you're trying to solve.)
* What interface do you have in mind? (What new properties or methods do you think might be helpful?)
* Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)
* Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)
8 changes: 4 additions & 4 deletions playground/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,17 @@ for (var i = 0; i < 1000; i++) {
})
}

const mount = document.querySelector('#mount')
const container = document.getElementById('mount')

ReactDOM.render(
React.createElement(App),
mount
container
)

document.body.addEventListener('click', function () {
const bodyWidth = document.body.getBoundingClientRect().width
const minWidth = 300

mount.style.display = 'inline-block'
mount.style.maxWidth = `${minWidth + Math.round(Math.random() * (bodyWidth - minWidth))}px`
container.style.display = 'inline-block'
container.style.maxWidth = `${minWidth + Math.round(Math.random() * (bodyWidth - minWidth))}px`
})

0 comments on commit 2479927

Please sign in to comment.