"You are about to leave this record without saving..." msg pop up when clicking save on quotes edit form

I’ve been customizing line_items.js because of specific needs of our company and I’ve added an “info” image beside the product name that when clicked will display product & pricing info for the selected product on the line (see attached image). Everything works fine except that if the product info data is in a table, I get the “You are about to leave this record without saving…” message when I click save (which obviously makes no sense). If I replace the

tag with a bunch of
's for example, the form behaves normally and I do not get the warning message on save. Anyone know why that’s happening?

I’ve converted the table to divs using the css property display table, table-row & table-cell. Everything is working fine now.