Skip to content
Snippets Groups Projects
Commit dc976a32 authored by rhenck's avatar rhenck
Browse files

SpellCorrect: Fix readonly

Prevent the button from activating and strking the text on inout focus.
parent 70edd1e6
No related branches found
No related tags found
No related merge requests found
Pipeline #69232 passed
...@@ -45,9 +45,9 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc ...@@ -45,9 +45,9 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
[style.font-style]="elementModel.styling.italic ? 'italic' : ''" [style.font-style]="elementModel.styling.italic ? 'italic' : ''"
[style.width.%]="100" [style.width.%]="100"
[style.margin-top]="'-20px'" [style.margin-top]="'-20px'"
[style.text-decoration-line]="(inputElement && inputElement.focused) || [style.text-decoration-line]="!elementModel.readOnly && ((inputElement && inputElement.focused) ||
(inputElement && !!inputElement.value) || (inputElement && !!inputElement.value) ||
(elementFormControl && elementFormControl.value === '') ? (elementFormControl && elementFormControl.value === '')) ?
'line-through' : ''" 'line-through' : ''"
(click)="elementFormControl.value === null ? (click)="elementFormControl.value === null ?
inputElement.focus() : inputElement.focus() :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment