- txt_popis_vsa_3:
Control: ModernTextInput@1.0.0
Properties:
Default: |-
=//momentalne pozastavne
//DataTable_aktivity_2.Selected.Popis
//ctxPopisEdit
//v testovacej faze
If(tgl_zobraz_modernTable.Checked,
modernTable_aktivity.Selected.Popis
,
First(colSelectedRecord).Popis
//predtym funguje
//DataTable_aktivity_2.Selected.Popis
)
DisplayMode: DisplayMode.Edit
FillPortions: =1
FontWeight: =""
Height: =100
LayoutMinWidth: =290
MaxLength: =-1
OnChange: |-
=
//UpdateContext({ ctxPopisEdit: Self.Text });;
//uklada vsetko do pomocnej tabulky
Select(btn_SaveControl_pred_ulozenim)
Placeholder: =""
Size: =12
TriggerOutput: =TriggerOutput.FocusOut
Type: =TextInputType.Multiline
ValidationState: =If(IsBlank(Self.Text),"Error","None")
Visible: |-
false
Width: =315
X: =rectan_horizontalna_2.X + 20
Y: =lbl_popis_3.Y+lbl_popis_3.Height
-----------------------------------------------------
Copilot convinced me that the problem is a combination of Android + IME composing text (Android) + modern TextInput rendering
He also told me to rework the passing of the value to the default attribute via a variable and not use a collection or record.
This is also visible in the commented parts:
ctxPopisEdit
and
UpdateContext({ ctxPopisEdit: Self.Text })
but none of these recommendations helped solve my problem.
--------------------------------------------------------
This is the code for the classic TextInput - where this problem does not occur
- txt_clasic_popis_vsa_3:
Control: Classic/TextInput@2.3.2
Properties:
AlignInContainer: =AlignInContainer.Start
BorderStyle: =//BorderStyle.Solid
BorderThickness: =0
Clear: =true
Default: |-
=If(tgl_zobraz_modernTable.Checked,
modernTable_aktivity.Selected.Popis
,
First(colSelectedRecord).Popis
//predtym funguje
//DataTable_aktivity_2.Selected.Popis
)
DisplayMode: DisplayMode.Edit
EnableSpellCheck: =true
Fill: =RGBA(166, 166, 166, 0.1)
FocusedBorderThickness: =//4
Height: =100
HoverBorderColor: =//App.Theme.Colors.Darker40
HoverFill: =//App.Theme.Colors.Lighter70
LayoutMinHeight: =16
LayoutMinWidth: =16
LineHeight: =1.1
Mode: =TextMode.MultiLine
OnChange: =Select(btn_SaveControl_pred_ulozenim)
PaddingLeft: =10
RadiusBottomLeft: =0
RadiusBottomRight: =0
RadiusTopLeft: =0
RadiusTopRight: =0
Size: =10
Visible: =If('Screen - aktivity'.Size <=4 , true, false)
Width: =Parent.Width
-----------------------------------
Please, does anyone have the same problem? Has anyone encountered this before? Can you advise me where I might be wrong if it is not a bug in modern TextInput? Thank you in advance for all the advice.