Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions KTL.js
Original file line number Diff line number Diff line change
Expand Up @@ -8318,9 +8318,13 @@ function Ktl($, appInfo) {

const debouncedFormContentHasChanged = debounce(formContentHasChanged, 500);
$(document).on('input', function (event) {
const targetKnInput = $(event.target).closest('.kn-input');
const isChosenConnectionField = targetKnInput.hasClass('kn-input-connection') && targetKnInput.find('.chzn-select').length > 0;

if (!event
|| !event.target.type
|| event.target.className.includes('knack-date')
|| isChosenConnectionField
|| $(event.target).closest('.chzn-container').length)
return;

Expand Down Expand Up @@ -8380,6 +8384,11 @@ function Ktl($, appInfo) {
const knInput = element.closest('.kn-input');
if (!knInput) return;

if (knInput.classList.contains('kn-input-connection')
&& knInput.querySelector('.chzn-select')
&& !(element instanceof HTMLSelectElement))
return;

const fieldId = knInput.getAttribute('data-input-id');
if (!fieldId) return;

Expand Down