Skip to content

Commit

Permalink
[IRON-14173] - Make updates to force scroll (#71)
Browse files Browse the repository at this point in the history
* make updates to force scroll

* update to only if undefined

* remove retrieveHTML updates

* update version to 2.9.0
  • Loading branch information
kelvinjue authored Feb 16, 2023
1 parent 8756b40 commit 59d44a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pactsafe/pactsafe-react-sdk",
"version": "2.8.0",
"version": "2.9.0",
"description": "Ironclad Clickwrap React SDK - SDK for easy Ironclad Clickwrap implementations leveraging the Ironclad JavaScript Library & API",
"author": "Ironclad",
"license": "MIT",
Expand Down
14 changes: 7 additions & 7 deletions src/PSClickWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,16 @@ class PSClickWrap extends React.Component {
} = this.props;
const options = {
allow_disagreed: allowDisagreed || false,
acceptance_language: acceptanceLanguage,
...(acceptanceLanguage !== undefined && { acceptance_language: acceptanceLanguage }),
auto_run: displayImmediately,
confirmation_email: confirmationEmail,
...(confirmationEmail !== undefined && { confirmation_email: confirmationEmail }),
container_selector: containerId,
display_all: displayAll,
filter,
force_scroll: forceScroll,
render_data: renderData,
signer_id_selector: signerIdSelector,
style: clickWrapStyle,
...(filter !== undefined && { filter }),
...(forceScroll !== undefined && { force_scroll: forceScroll }),
...(renderData !== undefined && { render_data: renderData }),
...(signerIdSelector !== undefined && { signer_id_selector: signerIdSelector }),
...(clickWrapStyle !== undefined && { style: clickWrapStyle }),
};

if (injectSnippetOnly) return;
Expand Down

0 comments on commit 59d44a9

Please sign in to comment.