mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 05:38:12 +00:00
Fix disabling spellcheck with <Input>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// Copyright 2021-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React, { useState } from 'react';
|
||||
@@ -18,6 +18,7 @@ const stories = storiesOf('Components/Input', module);
|
||||
|
||||
const createProps = (overrideProps: Partial<PropsType> = {}): PropsType => ({
|
||||
disabled: Boolean(overrideProps.disabled),
|
||||
disableSpellcheck: overrideProps.disableSpellcheck,
|
||||
expandable: Boolean(overrideProps.expandable),
|
||||
hasClearButton: Boolean(overrideProps.hasClearButton),
|
||||
i18n,
|
||||
@@ -92,3 +93,11 @@ stories.add('disabled', () => (
|
||||
})}
|
||||
/>
|
||||
));
|
||||
|
||||
stories.add('spellcheck disabled', () => (
|
||||
<Controller
|
||||
{...createProps({
|
||||
disableSpellcheck: true,
|
||||
})}
|
||||
/>
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user