Browse Source

fix(ui): disable spellcheck in payreq fields

renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
76e7eeec10
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 1
      app/components/UI/LightningInvoiceInput.js
  2. 1
      test/unit/components/UI/__snapshots__/LightningInvoiceInput.spec.js.snap

1
app/components/UI/LightningInvoiceInput.js

@ -56,6 +56,7 @@ class LightningInvoiceInput extends React.Component {
placeholder={intl.formatMessage({ ...messages.payreq_placeholder })}
rows={5}
{...this.props}
spellCheck="false"
validate={this.validate}
/>
)

1
test/unit/components/UI/__snapshots__/LightningInvoiceInput.spec.js.snap

@ -52,6 +52,7 @@ exports[`component.UI.LightningInvoiceInput should render correctly 1`] = `
placeholder="Paste a Lightning Payment Request or Bitcoin Address here"
required={false}
rows={5}
spellCheck="false"
value=""
width={1}
/>

Loading…
Cancel
Save