fix(debug): remove buggy typeahead debug check

This commit is contained in:
ryan 2025-04-11 16:16:16 +03:00
parent f646b92d3a
commit 102f69fd29

View file

@ -112,15 +112,6 @@ pub fn TypeaheadInput(
log!("[INPUT] Value changed: {}", value);
let _ = js_sys::eval("console.log('jQuery version:', $.fn.jquery)");
let _ = js_sys::eval("console.log('Typeahead version:', $.fn.typeahead ? 'loaded' : 'missing')");
// Add debug check for Typeahead instance
if let Some(input) = node_ref.get() {
let dom_input: web_sys::HtmlInputElement = input.unchecked_into();
let id = dom_input.id();
let _ = js_sys::eval(&format!(
"console.log('Typeahead instance for #{id}:', $('#{id}').data('ttTypeahead'))",
id = id
));
}
}
/>
}