qml: ElTextArea: hide placeholder text on user input
What changed, and why it matters
This is a minor user-interface fix for Electrum's mobile/QML app. It makes placeholder hint text disappear once the user starts typing in a multi-line text box, so the hint doesn't visually overlap with what the user wrote. There is no security issue here.
No security action needed. Treat as routine UI polish.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit changes ElTextArea.qml so that placeholderText is no longer a direct alias to the underlying TextEdit’s placeholderText. Instead it becomes a custom string property, and the TextEdit’s placeholderText is set conditionally to empty when edit.text.length > 0. This is purely a UI/UX behavior change to hide placeholder text on user input.
Changed components
electrum/gui/qml/components/controls/ElTextArea.qmlInspect captured patch +2 / −1
diff --git a/electrum/gui/qml/components/controls/ElTextArea.qml b/electrum/gui/qml/components/controls/ElTextArea.qml
index f3c55d3..1d69e04 100644
--- a/electrum/gui/qml/components/controls/ElTextArea.qml
+++ b/electrum/gui/qml/components/controls/ElTextArea.qml
@@ -17,7 +17,7 @@ Flickable {
property alias background: rootpane.background
property alias font: edit.font
property alias inputMethodHints: edit.inputMethodHints
- property alias placeholderText: edit.placeholderText
+ property string placeholderText
property alias color: edit.color
property alias topPadding: rootpane.topPadding
readonly property bool anyActiveFocus: activeFocus || edit.activeFocus
@@ -55,6 +55,7 @@ Flickable {
width: parent.width
focus: true
wrapMode: TextEdit.Wrap
+ placeholderText: edit.text.length ? "" : root.placeholderText
onCursorRectangleChanged: root.ensureVisible(cursorRectangle)
onTextChanged: root.textChanged()
background: Rectangle {
Why this scored 17/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.