Skip to content

Commit

Permalink
TextArea, TextInput: prompt uses disabled text input, if available an…
Browse files Browse the repository at this point in the history
…d component is disabled
  • Loading branch information
joshtynjala committed Feb 22, 2024
1 parent 6401312 commit 3a093e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/feathers/controls/TextArea.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,9 @@ class TextArea extends BaseScrollContainer implements IStateContext<TextInputSta

private function getCurrentPromptTextFormat():TextFormat {
var textFormat = this.promptTextFormat;
if (!this._enabled && this.disabledTextFormat != null) {
textFormat = this.disabledTextFormat;
}
if (textFormat == null) {
textFormat = this.textFormat;
}
Expand Down
3 changes: 3 additions & 0 deletions src/feathers/controls/TextInput.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,9 @@ class TextInput extends FeathersControl implements IStateContext<TextInputState>

private function getCurrentPromptTextFormat():TextFormat {
var textFormat = this.promptTextFormat;
if (!this._enabled && this.disabledTextFormat != null) {
textFormat = this.disabledTextFormat;
}
if (textFormat == null) {
textFormat = this.textFormat;
}
Expand Down

0 comments on commit 3a093e5

Please sign in to comment.