Double-clicking a card in a solitaire game should send it to its foundation pile. In mine, it didn't. There was no error in the console, and the dblclick handler itself was correct. The browser just never called it. The cause is a pattern that is easy to end up with in a hand-written renderer: the click handler re-renders, and the re-render... Weiterlesen
Intelligence View
dblclick silently never fires if your click handler replaces the element
Double-clicking a card in a solitaire game should send it to its foundation pile. In mine, it didn't. There was no error in the console, and the dblclick handler itself was correct. The browser just never called it. The cause is a…
SOCIAL SHARE CARD GENERATOR