[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] Fix the issue where the content disappears when the text field from...
"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <689ba68c76a4b_2cd68d02501a@gitlab-sidekiq-low-urgency-cpu-bound-v2-d9d8965b-cs9kc.mail> |
Baraka Kinywa pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
7951e409 by franck franck kalunga at 2025-08-12T23:31:45+03:00
[FIX] Fix the issue where the content disappears when the text field from...
---
* [FIX] Fix the issue where the content disappears when the text field from...
---
* [FIX] Fix the issue where the content disappears when the text field from Element Plus loses focus (on blur)
See merge request tikiwiki/tiki!7952
See merge request tikiwiki/tiki!8274
- - - - -
1 changed file:
- lib/core/Services/Tracker/Controller.php
Changes:
=====================================
lib/core/Services/Tracker/Controller.php
=====================================
@@ -2975,7 +2975,8 @@ class Services_Tracker_Controller
// Highlight elements representing the field
$(`[field-name="${element.getAttribute("name")}"]`).attr("is-invalid", true);
if ($(element).attr("element-plus-ref")) {
- $(`#${$(element).attr("element-plus-ref")}`).attr("is-invalid", true);
+ let takeExistingClassNameAndAddInvalid = $(`#${$(element).attr("element-plus-ref")}`)[0]._root.children[1].className + " invalid";
+ $(`#${$(element).attr("element-plus-ref")}`)[0]._root.children[1].className = takeExistingClassNameAndAddInvalid;
}
},
unhighlight: function(element) {
@@ -2987,7 +2988,9 @@ class Services_Tracker_Controller
// Unhighlight elements representing the field
$(`[field-name="${element.getAttribute("name")}"]`).attr("is-invalid", false);
if ($(element).attr("element-plus-ref")) {
- $(`#${$(element).attr("element-plus-ref")}`).attr("is-invalid", false);
+ let takeExistingClassName = $(`#${$(element).attr("element-plus-ref")}`)[0]._root.children[1].className;
+ let newClassWithoutInvalidClassName = takeExistingClassName.replace(/\binvalid\b/, " ")
+ $(`#${$(element).attr("element-plus-ref")}`)[0]._root.children[1].className = newClassWithoutInvalidClassName;
}
},
ignore: ".ignore"
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7951e40900ae64b7028e70c8317e183e6dd0e554
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7951e40900ae64b7028e70c8317e183e6dd0e554
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs