Commit Graph
852 Commits
Author SHA1 Message Date
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
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
Paul O’Shannessy 087c2afed1 Make sure DOM components work in JSDOM 2013-10-15 11:38:26 -07:00
Paul O’Shannessy b0645bd5d3 Be consistent with object naming in tests
This also fixes line length issues our linter was complaining about.
2013-10-15 11:38:26 -07:00
SanderSpies 5a13dd090d Standardize prop -> DOM attribute process
Allow more than strings and numbers to be used as attributes for DOM
nodes. This removes the special casing for `0` and `false` that was
being used in ReactDOMInput and ReactDOMTextarea.

Now we will just `toString` any object we try to insert into a DOM.

Closes #422, #372, #302
2013-10-15 11:38:25 -07:00
Paul O'Shannessy b0455f4670 Ensure attribute values are strings
`jsdom` behavers differently than browsers here and we should ensure
that we are consistent. Browsers should be (and are) converting to
a string first, while `jsdom` doesn't.
2013-10-15 10:39:51 -07:00
Tim Yung 287f5b578c Add bitwise lint escape to DefaultDOMPropertyConfig 2013-10-15 10:38:31 -07:00
SanderSpies 6839704c4b #JSX => #jsx 2013-10-15 19:11:19 +02:00
Martin Konicek 5332422239 [docs] Fix a broken link to JSX syntax in README. 2013-10-14 17:10:26 -07:00