diff --git a/src/app/commoncomponents/MaterialTextField.qml b/src/app/commoncomponents/MaterialTextField.qml index 4982a8ca78e4e90b624136c7dc47fc9c6b361be0..b63f5d294d09b608718550d7d123e6bb0657a77c 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 48357244f3912a9081b0df7c4a65585c81652814..7c0fe051b9558442c59c6dd7baf46460a99b75cb 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