diff --git a/src/app/commoncomponents/MaterialTextField.qml b/src/app/commoncomponents/MaterialTextField.qml index 4982a8ca..b63f5d29 100644 --- a/src/app/commoncomponents/MaterialTextField.qml +++ b/src/app/commoncomponents/MaterialTextField.qml @@ -50,6 +50,7 @@ TextField { placeholderTextColor: !isActive ? JamiTheme.transparentColor : JamiTheme.placeholderTextColor + property string initialPlaceholderText property alias infoTipText: infoTip.text @@ -105,7 +106,7 @@ TextField { font.pointSize: root.font.pointSize anchors.baseline: root.baseline anchors.horizontalCenter: root.horizontalCenter - text: root.placeholderText + text: root.initialPlaceholderText color: root.baseColor visible: !root.isActive && !readOnly && root.text.toString() === "" } @@ -146,7 +147,7 @@ TextField { font.pointSize: root.font.pointSize - 3 anchors.top: baselineLine.bottom anchors.topMargin: 2 - text: root.placeholderText + text: root.initialPlaceholderText color: root.baseColor // Show the alternate placeholder while the user types. diff --git a/src/app/commoncomponents/ModalTextEdit.qml b/src/app/commoncomponents/ModalTextEdit.qml index 48357244..7c0fe051 100644 --- a/src/app/commoncomponents/ModalTextEdit.qml +++ b/src/app/commoncomponents/ModalTextEdit.qml @@ -92,7 +92,7 @@ Loader { font.pointSize: root.fontPointSize font.bold: root.fontBold echoMode: root.echoMode - placeholderText: root.placeholderText + initialPlaceholderText: root.placeholderText onAccepted: root.accepted() onTextChanged: dynamicText = text text: staticText