Skip to content

Commit

Permalink
Update linkfield
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Dec 10, 2024
1 parent 5afbc09 commit f3092c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions private/js/cms.linkfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ class LinkField {
}

handleChange(event) {
console.log("handleChange", event);
if (this.selectElement.value) {
if (this.selectElement.value && this.options.url) {
fetch(this.options.url + '?g=' + encodeURIComponent(this.selectElement.value))
.then(response => response.json())
.then(data => {
Expand All @@ -178,7 +177,6 @@ class LinkField {
}

search(page = 1) {
console.log("search", page);
this.openDropdown();
const searchText = this.inputElement.value.toLowerCase();
this.fetchData(searchText, page).then(response => {
Expand Down

0 comments on commit f3092c4

Please sign in to comment.