Skip to Content
0
Jan 21, 2023 at 11:56 AM

Input suggestionItems inside UI Table is getting cleared when Scrolling.

90 Views

Hi Everyone

We have place an Input Controller with Suggestion Item enabled inside a UI Table, when we are scrolling the UI Table the Value inside the Input COntroller are getting removed.

We have used 2 Model, one for the SuggestionItems and One for the Selected Key.

-- gists Link:

https://gist.github.com/motiononme/ecfd9d64d09f548dad6705d0af61920a

<ui:Table id="CreateTable" alternateRowColors="true" enableSelectAll="false" visibleRowCount="5" selectionMode="Single" rowSelectionChange="onTableRowSelected" rows="{oTableModel>/}" visibleRowCountMode="Fixed">
                                
                                <ui:columns>
                                    <ui:Column width="11rem">
                                        <Label text="Employee Information" />
                                        <ui:template>
                                            

                                            <Input id="PernrInputID" placeholder="{i18n>Pernr}" showSuggestion="true" suggestionItemSelected="OnEmployeeNumberSelected" selectedKey="{oTableModel>Pernr}" value="{oTableModel>Pernr}" suggestionItems="{path: 'oEmpDataSet>/', templateShareable:false}">
                                                <suggestionItems>
                                                    <core:ListItem text="{path: 'oEmpDataSet>Pernr' , templateShareable:false}" additionalText="{oEmpDataSet>EmpName}" />
                                                </suggestionItems>
                                            </Input>
                                        </ui:template>
                                    </ui:Column>

                                   
                                </ui:columns>
                            </ui:Table>