Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 0ecc04b

Browse files
committed
Omitting disallowed props in Control. Fixes #465
1 parent ccebe42 commit 0ecc04b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/control-component.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const findDOMNode = !isNative
2929
? require('react-dom').findDOMNode
3030
: null;
3131

32+
const disallowedProps = ['changeAction'];
33+
3234
function containsEvent(events, event) {
3335
if (typeof events === 'string') {
3436
return events === event;
@@ -526,7 +528,7 @@ function createControlClass(customControlPropsMap = {}, defaultProps = {}) {
526528
control,
527529
} = this.props;
528530

529-
const mappedProps = this.getMappedProps();
531+
const mappedProps = omit(this.getMappedProps(), disallowedProps);
530532

531533
// If there is an existing control, clone it
532534
if (control) {

0 commit comments

Comments
 (0)