Editor inline edit (select dropdown) not always working

Editor inline edit (select dropdown) not always working

mehdibouzidimehdibouzidi Posts: 3Questions: 2Answers: 0
edited November 2019 in Free community support

My datatable works fine until I add a select type to one of my columns:

 'fields' => [
                ['name' => 'column1', 'type' => 'select', 
                    'options' => [
                        'value1' => 'value1',
                        'value2' => 'value2',
                        'value3' => 'value3',
                        'value4' => 'value4' ]
                    ],

This dropdown works sometimes, upon loading or refreshing the page there is a chance that it will not work.

When it works i'm forced to press enter after clicking on one of the options, otherwise it won't save the value and do the post.

When it doesn't work the name simply disappears but reappears when clicked on the cell again.

Is there a chance there is conflict with jquery? console shows no errors.

Answers

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    That's PHP code which is being converted into Javascript is it? What is the resulting Javascript please?

    Can you give me a link to a page showing the issue. I don't immediately see what would be causing a problem there.

    Allan

  • mehdibouzidimehdibouzidi Posts: 3Questions: 2Answers: 0
    edited November 2019
    {
       "ajax": "ajax.php?page=post_table",
       "table": ".dataTable table",
       "idSrc": "id",
       "fields": [
          {
             "name": "column1",
             "type": "select",
             "options": [
                {
                   "label": "value1",
                   "value": "vallue1"
                }
             ]
          },
          {
             "name": "column2"
          },
          {
             "name": "column2"
          }
       ]
    }
    

    type => radio works fine btw, i'm using jquery ui @allan

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    There does appear to be anything wrong with that configuration. Could you give me a link to your page showing the issue so I can check it out please?

    Thanks,
    Allan

This discussion has been closed.