Make a quick vote 🗳 ️How do you refer to SuiteCRM extensions: add-ons or plug-ins? Click here to have your say 👈

Problem with CSS style in custom LineItems JS, no change in Record Edit

Hello friends, here I come with a question about something that is happening to me:

In the Line Items of AOS_Quotes when you are going to fill in a field, they saw that the size of the element that contains the options is limited:

It has a size of 182px

Well, this is actually not a problem to repair it and I did it, in the following way:
It’s modules/AOS_Products_Quotes/Line_Items.php

attach the css file with the styles, when it is AOS_Quotes:

which is in: modules/AOS_Products_Quotes/css/line_items_AOS.css

Then in custom/modules/AOS_Products_Quotes/line_items_AOS_Quotes.js
I remove the above class first and call the style class inside the insertLineItems(product,group) function near the end

  var pivote = prodln;
  setTimeout(function(){
    //console.log(pivote);
    $("#EditView_product_name" +pivote+"_results > div.yui-ac-content").addClass('yui-ac-content-Custom').removeClass('yui-ac-content');
    $("#EditView_product_part_number" +pivote+"_results > div.yui-ac-content").addClass('yui-ac-content-Custom_number');
  }, 300);

I add a small delay of 300 milliseconds because otherwise it is not applied
but…
THE PROBLEM:
This works perfectly when creating a new AOS_Quotes but editing one does not apply the style for all lines

What could be the problem ???!