Commit graph

113 commits

Author SHA1 Message Date
Pierre-Yves Gérardy
b38367aa30 core: don't call onremove on the children passed to components that return from their view, fix #1921 2017-11-29 15:59:38 +01:00
Mateusz Jaworski
4aac74eff3 fix: Allow for changing focus in lifecycle hooks (#1988) 2017-11-29 14:07:11 +01:00
Jackson Nowotny
c2c0d40a29 Fixing IE bug causing active element to be null causing render function to throw error 2017-09-11 09:55:51 -05:00
Pierre-Yves Gérardy
1fb64c91e3 Take the namespace of the root node into account, fix other ns oversight #1872 2017-06-14 01:59:45 +02:00
Pierre-Yves Gérardy
60e999fa89 [render/render] Add a special case for ; fix #1870 2017-06-12 18:42:46 +02:00
Isiah Meadows
712be2bcc3 Merge pull request #1862 from pygy/fix-1595-redux
Re-fix #1595
2017-05-31 02:56:29 -04:00
Isiah Meadows
66aa377548 Simplify ESLint guard 2017-05-31 02:44:15 -04:00
Pierre-Yves Gerardy
40429c8377 Pass namespace when creating new elements while updating a keyed list, fix #1820 2017-05-30 14:17:46 +02:00
Pierre-Yves Gerardy
4616160a52 redo #1595 2017-05-29 17:19:55 +02:00
Samuel Tilly
de4433cd31 Override namespace with xmlns attribute (#1825)
Fixes issue #1819 foreignObject inside SVG
2017-05-03 14:55:56 -04:00
spacejack
0f9d5f1631 Fix select option to use empty string value, add tests. 2017-04-30 15:04:37 -04:00
Isiah Meadows
b24c37c42d Revert "Pass vnode as second argument" 2017-04-28 16:40:13 -04:00
Isiah Meadows
e78d1b692c Support vnode event callbacks 2017-04-11 13:05:12 -04:00
Pierre-Yves Gerardy
e20fd3f876 Only call onremove and onbeforeremove when they are functions. Fix #1706 2017-03-27 16:47:45 +02:00
Pierre-Yves Gerardy
32ada55e00 Make the state undefined, not null during class and closure component initialization 2017-03-27 10:42:12 +02:00
Pierre-Yves Gerardy
d69f6e37aa Add a shadow vnode._state field for view and hook lookups 2017-03-26 22:24:17 +02:00
Pierre-Yves Gerardy
7be2ff5feb Strengthen the self-return prevention logic (for recycled nodes and updates) 2017-03-26 22:19:05 +02:00
Pierre-Yves Gerardy
aeb1c41bde treat functions with a view() method as POJO, not closure component 2017-03-26 21:33:30 +02:00
Pierre-Yves Gerardy
74cbd4c17b Let render() create the state rather than vnode() 2017-03-08 22:19:27 +01:00
Isiah Meadows
9d6a5e51eb Merge pull request #1674 from pygy/fix-state-initialization
Fix state initialization
2017-03-02 14:28:16 -05:00
Pierre-Yves Gerardy
3e7649ef06 Fix recycled components initialization
fix #1641
2017-02-24 09:26:26 +01:00
Leo
e019c8131c fix merge conflicts for #1610 2017-02-23 18:41:46 -05:00
Pierre-Yves Gerardy
7668ddd120 fix #1638 2017-02-21 09:17:00 +01:00
Leo Horie
732ddf06be Merge pull request #1595 from tivac/issues-1593
Loose comparison when early-outing from setting attributes
2017-02-18 10:05:42 -05:00
Pierre-Yves Gérardy
3f3af74dde Support classes and factories as components (#1339)
* Support classes and factories as components

* Tests for class and factory component support
2017-02-14 22:48:02 -05:00
Leo
632677e00c fix update lifecycle in children of recycled 2017-02-10 10:09:18 -05:00
Leo
0d9a51fe37 fix lifecycle in unkeyed child of recycled keyed 2017-02-09 09:54:48 -05:00
Leo
dc42b60687 #1609 fix lifecycle hooks in children of recycled keyed vnode 2017-02-09 08:31:08 -05:00
Tetsuro Yoshikawa
fdf2985adf Error in IE11 due to setting of type attribute
If you assign an input type that is not supported by IE11 with an
assignment expression, an error will occur.
2017-02-09 22:27:55 +09:00
Gyandeep Singh
390e1fe343 Update: Add elem to parent before adding its children 2017-02-07 21:55:01 -06:00
Pat Cavit
5ab2cf4172 fix: Use loose comparison for non-string values
fixes #1593
2017-02-06 14:46:31 -08:00
Barney Carroll
e1ea2822c9 Fix state initialisation logic 2017-01-06 17:12:56 +00:00
Barney Carroll
a19eae2792 Avoid creating intermediary constructor in component state creation 2017-01-06 16:59:52 +00:00
Barney Carroll
fbb454c6fd Merge branch 'rewrite' into array-isArray 2017-01-04 14:24:07 +00:00
Leo Horie
bedcd8bdbf update docs re:onbeforeremove and clean up 2016-12-26 12:28:13 -05:00
Leo Horie
1222a9a3ab change onbeforeremove and make state inherit from prototype 2016-12-26 12:19:20 -05:00
James
15c28066d7 Spy on setAttribute to test customElement support 2016-12-18 22:07:33 +11:00
Leo Horie
de07a54881 add support for route state #1480 2016-12-17 21:50:04 -05:00
Leo Horie
c95629c623 handles noop from undefined to null #1473 2016-12-16 15:21:57 -05:00
Barney Carroll
1050ade7c8 Merge branch 'rewrite' into array-isArray 2016-12-05 19:12:01 +00:00
Tomas Sardyha
3e44c9234c Improve event binding 2016-12-03 11:57:46 +01:00
Leo Horie
2f7c4983f3 ensure null doesn't displace next siblings 2016-12-02 20:41:07 -05:00
Barney Carroll
deaabb2684 Merge branch 'rewrite' into array-isArray 2016-11-24 16:26:10 +00:00
Barney Carroll
e8669ad5c8 Fix #1421 2016-11-24 12:29:45 +00:00
Barney Carroll
d82d337569 Replace x instanceof Array with Array.isArray(x) 2016-11-24 09:21:27 +00:00
Leo Horie
2b856ed6ac remove unnecessary append 2016-11-23 23:33:57 -05:00
Leo Horie
8eb61a12ab fix diff bug when array is sparse, item type and position and array length change 2016-11-23 22:28:08 -05:00
Vincent Velociter
47db092838 Fix blinking select in chrome when setting select value 2016-11-22 11:14:58 +01:00
porsager
fd484f9766 Fix options inside optgroups (active check is unnecessary) 2016-11-21 09:59:21 +01:00
porsager
af01c3c89f Use correct key name 2016-11-21 02:27:59 +01:00