I am using the vaadin grid component to display, edit and delete record in a table. I am using html inputs within my vaadin grid rows to hold the text and switch between readonly and editable depending on whether the user is editing the row. The code looks like this:
<vaadin-grid-column width="50%">
<template class="header">
Description
</template>
<template>
<input id="desc" class="input-row" value="[[item.Description]]" on-input="_storeDesc" readonly$="[[!_isEditing(editing, item)]]"></input>
</template>
</vaadin-grid-column>
The problem I have is that I would like to enable row selection within the vaadin grid. When I enable it the row is only registering as selected when the user clicks on a part of the row that does not contain the html input. If the user clicks on the input the grid will not register that the active item has changed.
If the user clicks on the white section (the html input) the grid will not register a change in selection however if they click the blue part it will register. Is there a workaround for this? Is there anything I can put on the input tag to ensure the row is selected properly?
TIA
