mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-26 00:15:18 -04:00
fix blinking caret not appearing in extra info
This commit is contained in:
parent
8350a17c0f
commit
e3c2251a68
1 changed files with 6 additions and 1 deletions
|
@ -710,7 +710,11 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
|
||||||
};
|
};
|
||||||
extraInfoFocusedListener = (observable, oldValue, newValue) -> {
|
extraInfoFocusedListener = (observable, oldValue, newValue) -> {
|
||||||
model.onFocusOutExtraInfoTextArea(oldValue, newValue);
|
model.onFocusOutExtraInfoTextArea(oldValue, newValue);
|
||||||
|
|
||||||
|
// avoid setting text area to empty text because blinking caret does not appear
|
||||||
|
if (model.extraInfo.get() != null && !model.extraInfo.get().isEmpty()) {
|
||||||
extraInfoTextArea.setText(model.extraInfo.get());
|
extraInfoTextArea.setText(model.extraInfo.get());
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
errorMessageListener = (o, oldValue, newValue) -> {
|
errorMessageListener = (o, oldValue, newValue) -> {
|
||||||
|
@ -1098,6 +1102,7 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
|
||||||
GridPane.setColumnSpan(extraInfoTitledGroupBg, 3);
|
GridPane.setColumnSpan(extraInfoTitledGroupBg, 3);
|
||||||
|
|
||||||
extraInfoTextArea = new InputTextArea();
|
extraInfoTextArea = new InputTextArea();
|
||||||
|
extraInfoTextArea.setText("");
|
||||||
extraInfoTextArea.setPromptText(Res.get("payment.shared.extraInfo.prompt.offer"));
|
extraInfoTextArea.setPromptText(Res.get("payment.shared.extraInfo.prompt.offer"));
|
||||||
extraInfoTextArea.getStyleClass().add("text-area");
|
extraInfoTextArea.getStyleClass().add("text-area");
|
||||||
extraInfoTextArea.setWrapText(true);
|
extraInfoTextArea.setWrapText(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue