Skip to content
Snippets Groups Projects
Commit 17b40b3a authored by bbaer's avatar bbaer
Browse files

not displayed when disabled

parent e01f4532
No related branches found
No related tags found
2 merge requests!328Master,!327replaced symbol
Checking pipeline status
......@@ -74,7 +74,7 @@ $(document).ready( function () {
class: "qfq-clear-me-button",
html: "×"
});
if (myInput.val() == '') {
if (myInput.val() == '' || myInput.is('[disabled=disabled]')) {
closeButton.addClass("hidden");
}
closeButton.on("click", function(e) {
......@@ -83,7 +83,7 @@ $(document).ready( function () {
});
$(this).after(closeButton);
$(this).on("input", function() {
if(myInput.val() != '') {
if(myInput.val() != '' && !myInput.is('[disabled=disabled]')) {
closeButton.removeClass("hidden");
} else {
closeButton.addClass("hidden");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment