Skip to content
Snippets Groups Projects
Commit 0356ef61 authored by William Todd Stinson's avatar William Todd Stinson
Browse files

CHUI-243: Add calls the parent class's implementation for onFocusReceived()...

CHUI-243: Add calls the parent class's implementation for onFocusReceived() and onFocusLost() to ensure that the focus change messages are properly propagated.
parent 2d0b6f03
Branches
Tags
No related merge requests found
...@@ -1359,6 +1359,7 @@ void LLTextBase::onSpellCheckSettingsChange() ...@@ -1359,6 +1359,7 @@ void LLTextBase::onSpellCheckSettingsChange()
void LLTextBase::onFocusReceived() void LLTextBase::onFocusReceived()
{ {
LLUICtrl::onFocusReceived();
if (!getLength() && !mLabel.empty()) if (!getLength() && !mLabel.empty())
{ {
// delete label which is LLLabelTextSegment // delete label which is LLLabelTextSegment
...@@ -1368,6 +1369,7 @@ void LLTextBase::onFocusReceived() ...@@ -1368,6 +1369,7 @@ void LLTextBase::onFocusReceived()
void LLTextBase::onFocusLost() void LLTextBase::onFocusLost()
{ {
LLUICtrl::onFocusLost();
if (!getLength() && !mLabel.empty()) if (!getLength() && !mLabel.empty())
{ {
resetLabel(); resetLabel();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment