Commit Graph
19463 Commits
Author SHA1 Message Date
Connor McSheffrey e0df9cbb01 Add event listeners cookbook entry 2013-10-29 10:14:20 -07:00
Cheng Lou 1e56800543 shrink working on props in state entry 2013-10-29 10:14:20 -07:00
Cheng Lou 28f30b7ef0 props in getInitialState as anti-pattern 2013-10-29 10:14:20 -07:00
Connor McSheffrey 86355eb1ba added grunt task for generating live samples JS 2013-10-29 10:14:20 -07:00
Cheng Lou bfbcb5362b tip format for intro 2013-10-29 10:14:20 -07:00
Cheng Lou 8d2b4a9a25 all typos 2013-10-29 10:14:20 -07:00
Connor McSheffrey da722b92c0 Added backgroundImage example to "inline styles" cookbook entry 2013-10-29 10:14:20 -07:00
Connor McSheffrey a4d7f3f907 minor spelling change on the "controlled input null value" cookbook entry 2013-10-29 10:14:20 -07:00
Cheng Lou 6377b2ed95 entry on willReceiveProps not triggered on mounting 2013-10-29 10:14:19 -07:00
Cheng Lou dd52ef92a8 entry on controlled input with value null 2013-10-29 10:14:19 -07:00
Cheng Lou 9ed72b43e8 add line-height to unitless css props 2013-10-29 10:14:19 -07:00
Cheng Lou f4bbe9c296 style prop value shorthand, children prop manip warning 2013-10-29 10:14:19 -07:00
Cheng Lou 814126dc52 entry on returning only one node from render 2013-10-29 10:14:19 -07:00
Cheng Lou ff9246316f fix permalink, temporarily remove script field of Jekyll 2013-10-29 10:14:19 -07:00
Cheng Lou b92c433c50 small typo and code tag is now js highlight
Was html before bc github screws up the js highlighting for jsx.
2013-10-29 10:14:19 -07:00
Cheng Lou 7144ba1c10 new entry on self-closing tag 2013-10-29 10:14:19 -07:00
Cheng Lou 0fad22512a new entry for ternary expression in jsx 2013-10-29 10:14:19 -07:00
Cheng Lou 4d9cde43be add tip format for comparison 2013-10-29 10:14:19 -07:00
Cheng Lou dc24bb63d6 add tip style to style entry 2013-10-29 10:14:19 -07:00
Connor McSheffrey 5f296768a5 Moved cookbook recipes into separate directory. Updated nav_docs to loop through cookbook yaml. Added cookbook directory to js/ to add live editing of code samples 2013-10-29 10:14:19 -07:00
Connor McSheffrey dd5fbc5859 Added docs for React cookbook section Introduction and Inline Styles React recipe 2013-10-29 10:14:18 -07:00
Laurence Rowe 280eff41f3 Make 'disabled' MUST_USE_ATTRIBUTE for compatibility with CSS [disabled] selectors.
When a ReactDOMComponent is created with the property `disabled: true` subsequently setting the property to `disabled: false` the HTML attribute `disabled="true"` was being left in the DOM.
2013-10-28 18:53:19 -07:00
Paul O’Shannessy 214e9103bf Merge pull request #423 from andreypopp/master
Re-rendering components into a document leaks components
2013-10-28 17:00:19 -07:00
Andrey Popp ac9dd92272 Fix unmounting components mounted into doc element
If we are to unmount a component mounted into a document element we should
unmount it from document.documentElement and not from document.firstChild which
is a doctype element in this specific case.
2013-10-29 02:49:00 +04:00
Ben Alpert 25ba629098 Move heading anchors 50px up to avoid nav bar
Fixes #447.

We do this by moving the actual anchored element up in the page without moving the actual text. (Apple uses a similar trick in their framed docs.) Now this looks a bit sillier on smaller screens but it's better overall.
2013-10-28 13:52:58 -07:00
petehunt 91d23ffc58 typo 2013-10-28 10:21:11 -07:00
Paul O’Shannessy 10f3d93df7 Update API docs for unmountAndReleaseReactRootNode 2013-10-26 17:42:34 -07:00
Pete Hunt 1c77e1a492 Merge pull request #446 from brianr/master
ReactTransitionGroup example: fix typo and logic bug in handleRemove
2013-10-25 18:13:46 -07:00
Ian Obermiller fbb741febb Fix ReactTransitionEvents detectEvents 2013-10-25 18:11:58 -07:00
Brian Rue c5cc145538 ReactTransitionGroup example: fix typo and logic bug in handleRemove 2013-10-25 18:03:31 -07:00
Cat Chen 0ef1ca0024 fixed %d in invariant call 2013-10-25 18:03:26 -07:00
petehunt 0a75a52b4a Changes based on feedback 2013-10-25 11:40:54 -07:00
Josh Duck 0d2d3360d0 Don't reset mouseDown in focus handlers
Focus fires after mouse down on initial click, so we lost the
flag when the user initially began dragging on the input.
2013-10-22 14:09:33 -07:00
petehunt 15de778587 New marketing copy 2013-10-21 22:08:43 -07:00
Keito Uchiyama eeefe95958 docs: Delete Mutation Events (onCharacterDOMModified) 2013-10-21 19:56:49 -07:00
Paul O’Shannessy 5e65c186aa docs: remove OUTLINE 2013-10-21 15:20:01 -07:00
Cheng Lou 99dcdb87e3 Add clickable anchors to docs headers
Closes #434
2013-10-21 14:27:31 -07:00
Tim Yung 58b3ae3136 Use Default Value for Undefined Props
Currently, default props as defined by `getDefaultProps` are only used if a prop is not specified (using `X in Y` check).

However, this makes it difficult for composing components to pass along the state of not being defined, for example:

  render: function() {
    // If `this.props.someProp` is not set, `InnerThing` should use the default value.
    return <InnerThing someProp={this.props.someProp} />;
  }

This changes the requirement for falling back to the default value to an undefined check (using `typeof X === 'undefined'`).
2013-10-21 13:17:44 -07:00
Pete Hunt 7d6b0dd613 Merge pull request #438 from spicyj/select-range
Make SelectEventPlugin not throw for range inputs
2013-10-21 09:39:39 -07:00
Ben Alpert 893fba8373 Make SelectEventPlugin not throw for range inputs
Accessing .selectionStart on a non-text input will throw (see http://www.w3.org/TR/2009/WD-html5-20090423/editing.html#textFieldSelection), so check that the input has selection capabilities before accessing the property.

Fixes #437.
2013-10-20 14:39:37 -07:00
Paul O’Shannessy b46b6a8db9 Fix live editor examples on home page.
Remember that one time I wrote release notes and said:

> This is a breaking change - if you were using class, you must change
> this to className or your components will be visually broken.

Good thing I didn't listen to myself!
2013-10-16 17:56:51 -07:00
Paul O’Shannessy 44ad2b55e6 0.5.0 release
Updated README, CHANGELOG, blog post
2013-10-16 11:43:09 -07:00
Paul O’Shannessy 820532b7aa Fix grunt npm:test 2013-10-16 11:42:02 -07:00
Paul O’Shannessy 48281a17e4 bump version to 0.6.0-alpha 2013-10-15 22:39:28 -07:00
Paul O’Shannessy d8c949e4d8 Update browserify 2013-10-15 21:27:26 -07:00
JeffMo 243a2b816e bump baseline jstransform and esprima dependency versions 2013-10-15 18:54:01 -07:00
Paul O’Shannessy 451176665c Update docs with supported tags and attributes 2013-10-15 18:15:24 -07:00
Paul O’Shannessy cff62f8d72 Enable linting for bitwise operators 2013-10-15 18:02:28 -07:00
Paul O'Shannessy 3f2ba221ef Use getActiveElement module
We had something that did the same sort of protection. The module
differs slightly (returns document.body instead of undefined) but
looking at the callers, that should be ok.
2013-10-15 18:00:05 -07:00
Paul O'Shannessy 46713c3d7d Fix Lint
Enabling bitwise linting caught another user. Also fixed a semicolon
misuse.
2013-10-15 17:59:14 -07:00