5 ms·
There's many things to love about the design, but the fact that they use actual anchor tags and override the default behavior with JS is extremely frustrating a
by ericwood 4y ago
There's many things to love about the design, but the fact that they use actual anchor tags and override the default behavior with JS is extremely frustrating and makes opening in a new tab impossible. When I'm looking for parts I tend to want to open up several categories or parts across a few tabs and they make it impossible. Horizontal scrolling is also remapped to scroll vertically as well, which breaks the trackpad swipe behavior for going forwards and backwards on MacOS.
- OneLeggedCat 4y ago> makes opening in a new tab impossible This has been happening to so many commerce sites for the last several years. It's infuriating. They absolutely hate the idea that you might want to look at several items at once. Anyway, in Firefox I kludge around it by right clicking the tab I'm on, selecting Duplicate Tab, then clicking the item in that new tab. Sometimes you gotta duplicate a lot that way, but it usually works.
- zmgsabst 4y agoWhat is it that doesn’t work? I started at the home page and could middle click on both images and blue text, down to individual items. (Using Chrome from Linux.)
- ericwood 4y agoOh this is interesting; right click and "open in new tab" seems to work, but cmd+click (my preferred method) doesn't. They must have something else going on that interferes with it, very strange.
- recursive 4y agoIt all works on my machine. Firefox/Win11. Not sure what's happening for you.
- ericwood 4y agoI'm on MacOS; I think I found the issue in the code they use for navigation. It's checking for ctrlKey on the MouseEvent and not MetaKey as well, which is what CMD maps to on MacOS. I might email them about it.
- azdle 4y ago> There's many things to love about the design, but the fact that they use actual anchor tags and override the default behavior with JS is extremely frustrating and makes opening in a new tab impossible. I've only ever dabbled in webdev, but I thought this _was_ the right way to do it? Having an actual anchor tag with an href that overrides onclick means that your fancy javascripty partial page load works, but so does middle click and regular clicking without javascript. Is there some other way that's even more compatible? Middle-clicking everything on mcmaster's site seemed to work for me in firefox.
- ericwood 4y agoThey're most of the way to doing it correctly! What's missing is a few edge cases, such as ensuring the click is happening without modifier keys. This is how react-router handles it: https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/dom.ts#L32 https://github.com/remix-run/react-router/blob/main/packages...