Skip to content

Commit a5d9869

Browse files
Merge pull request #41 from react-R/try-addelid
Add element to Shiny input
2 parents 1e5374f + 152af9f commit a5d9869

File tree

6 files changed

+1437
-1206
lines changed

6 files changed

+1437
-1206
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: reactR
22
Type: Package
33
Title: React Helpers
4-
Version: 0.4.2
5-
Date: 2020-01-23
4+
Version: 0.4.3
5+
Date: 2020-07-01
66
Authors@R: c(
77
person(
88
"Facebook", "Inc"

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# reactR 0.4.3
2+
3+
* Add element to Shiny input [pull 41](https://github.com/react-R/reactR/pull/41)
4+
5+
* Upgrade npm dependencies
6+
17
# reactR 0.4.2
28

39
* Update react to `16.12.0`

inst/www/react-tools/react-tools.js

Lines changed: 103 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/www/react-tools/react-tools.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

srcjs/input.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ export function reactShinyInput(selector,
161161
const element = React.createElement(component, {
162162
configuration: this.getInputConfiguration(el),
163163
value: this.getValue(el),
164-
setValue: this.setValue.bind(this, el)
164+
setValue: this.setValue.bind(this, el),
165+
el: el
165166
});
166167
ReactDOM.render(element, el);
167168
}

0 commit comments

Comments
 (0)