question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selectable table with form elements mouse release problem [Chrome]

See original GitHub issue

When i use selectable table with form elements when the row is selected, if i release the mouse outside the form element it deselects the row.

Vue version: 2.6.10 Bootstrap-Vue version: 2.2.2

Here is a GIF illustrating the issue.

primerok

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DM2489commented, Apr 24, 2020

@TheAndroidGuy Thanks, seems like a sensible solution. I’ll adopt the same external tracker approach.

1reaction
TheAndroidGuycommented, Apr 23, 2020

@DM2489 I ended up using primitive workaround:

inside data:

my_row_selected: null

inside methods:

myRowSelect: function(index){
  this.my_row_selected = index
}

inside component:

<div v-if="my_row_selected == row.index">
  <!-- some form element when row is selected -->
</div>
<div v-else @click="myRowSelect(row.index)">
  <!-- data when row is not selected -->
</div>

Another even worse workaround would be to use modal when the row is clicked and display the form elements inside the modal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select column from a table with Google Chrome - Super User
Allows you to select columns, rows and arbitrary areas in a table and copy in different formats. Share.
Read more >
There is a text cursor bug in my chrome that causes the ...
Only the cursor is appearing but I can't edit that element. I will include some screenshots. I will also upload a video.
Read more >
<input>: The Input (Form Input) element - HTML
Individual attributes. accept. Valid for the file input type only, the accept attribute defines which file types are selectable ...
Read more >
onchange event on input type=range is not triggering in ...
Apparently Chrome and Safari are wrong: onchange should only be triggered when the user releases the mouse. To get continuous updates, you should...
Read more >
Browser automation actions reference - Power Automate
To add a new UI element, select Add UI element through the deployed ... of a web page in the form of single...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found