diff --git a/src/Cleave.react.js b/src/Cleave.react.js index 58d468dc..8dadac6b 100644 --- a/src/Cleave.react.js +++ b/src/Cleave.react.js @@ -70,9 +70,12 @@ var cleaveReactClass = CreateReactClass({ options = {}; } - options.initValue = value; - - owner.properties = DefaultProperties.assign({}, options); + owner.properties = DefaultProperties.assign( + {}, + // avoid mutating the `options` prop directly + Object.assign({}, options, { initValue: value }) + ); + return { value: owner.properties.result,