Commit Graph
859 Commits
Author SHA1 Message Date
Laurence Rowe 1bcca22719 Script async and defer properties 2013-11-04 20:40:53 -08:00
petehunt 6c1e8e8a66 Update tutorial to use className 2013-11-04 17:04:25 -08:00
Ben Newman ff3c8ccbe6 Merge pull request #458 from chenglou/rm-wrapup
Remove support for the wrapup packager.
2013-11-04 11:41:59 -08:00
Paul O’Shannessy da5c61afe4 Oxford comma 2013-11-04 11:34:56 -08:00
Josh Duck 18bf0b80bc Fix ReactDOMSelection for IE 11
IE 11 no longer supports the legacy document.selection API.
Their implementation of window.getSelection() doesn't support
the extend() method, which we were relying on.

If the selection is RTL and selection extend is missing, then just
flip the selection.
2013-11-04 11:34:39 -08:00
Cheng Lou d220ce71b5 Merge branch 'rm-wrapup' of github.com:chenglou/react into rm-wrapup
Conflicts:
	package.json
2013-11-03 15:43:56 -05:00
Cheng Lou d6cbc710bd remove examples/wrapup
Apparently it's no longer relevant.
2013-11-03 15:41:40 -05:00
Paul O’Shannessy 10ccd9f103 Merge pull request #465 from matnel/bug388
Clear error message when rendering a nonvalid component
2013-11-01 18:35:50 -07:00
Matti Nelimarkka 9e24257a4e Clear error message when rendering a nonvalid component 2013-11-01 17:32:09 -07:00
Paul O’Shannessy aedf580a33 [docs] Clarify when getInitialState is called. 2013-11-01 15:29:10 -07:00
Tim Yung 0dc011c40c Better getUnboundedScrollPosition for windows
Instead of using browser sniffing, `getUnboundedScrollPosition` can do
better and not have to depend on the `getDocumentScrollElement` module.
2013-10-31 15:24:58 -07:00
JeffMo a4f8ad1bb0 Switch utility function calls -> namespaced calls 2013-10-31 13:45:16 -07:00
Cheng Lou 0acf5e22bd remove examples/wrapup
Apparently it's no longer relevant.
2013-10-31 15:49:37 -04:00
Ben Newman df1099649c Merge pull request #457 from benjamn/upgrade-populist
Bump populist version to v0.1.4
2013-10-31 10:22:14 -07:00
Ben Newman d1ad4a3ff0 Bump populist version to v0.1.4.
The new version includes a fix for this IE8 issue reported by
@subtleGradient: https://github.com/benjamn/populist/issues/4

Closes #456.
2013-10-31 13:03:31 -04:00
Paul O'Shannessy 2cf7d943df Reorder DefaultDOMPropertyConfig
`autoCorrect` belongs with the non-standard properties list.
2013-10-30 16:58:05 -07:00
Mark Richardson 9b44ad6ce5 Add autoCorrect to list of supported DOM properties 2013-10-30 16:57:53 -07:00
Tim Yung 7789a32438 Forward Compatibility w/ WebKit & Blink
Newer versions of WebKit and Blink will support both `document.body.scrollTop` and `document.documentElement.scrollTop`. Therefore, implementing cross-browser compatibility by summing the two will no longer work.

This changes React to use `getUnboundedScrollPosition` so we get the fix and consistency in one change!

See: https://rniwa.com/2013-10-29/web-compatibility-story-of-scrolltop-and-scrollleft/
2013-10-30 16:56:55 -07:00
Paul O’Shannessy a5d1e2fd90 blog post for 0.5.1 2013-10-29 13:16:53 -07:00
Paul O’Shannessy d8e3779010 Update everything for v0.5.1
Cherry-picked from f3db0006e8, excluding
version changes.
2013-10-29 13:15:33 -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
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
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
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
Paul O’Shannessy b015204938 Updated AUTHORS for 0.5
closes #414
2013-10-15 15:01:14 -07:00
petehunt 24f6bed855 new addons docs
closes #403
2013-10-15 14:09:21 -07:00
Paul O’Shannessy 5325e944e9 Merge pull request #426 from SanderSpies/sspi-fix-jsx-doc-link
In-browser JSX warning linked to wrong anchor (should be lowercase)
2013-10-15 12:04:59 -07:00
Paul O’Shannessy b488cb3d4b Merge branch 'SanderSpies-sspi-dom-attribute-process' 2013-10-15 12:00:52 -07:00