Skip to content

Commit 2616930

Browse files
rohmanhmagirton
authored andcommitted
Fix Usage Docs Example (JedWatson#1799)
Before this change, console log in browser will throw > Selected: [object Object] After this change console log in browser will throw some nice information. > Selected: {"value":"three","label":"Three"}
1 parent b068247 commit 2616930

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var options = [
8383
];
8484

8585
function logChange(val) {
86-
console.log("Selected: " + val);
86+
console.log("Selected: " + JSON.stringify(val));
8787
}
8888

8989
<Select

0 commit comments

Comments
 (0)