Alex McCabe

Results 31 comments of Alex McCabe

Oof nearly three years 😞 I may take a crack at it, but might be for my use-case and not a full definition

For anyone looking, this will get you the Mixin working with TS ```ts // vue-reactive-provide.d.ts declare module 'vue-reactive-provide' { import Vue, { VueConstructor } from 'vue'; interface ReactiveProvideMixinOptions { attrs?:...

This is how I disable scrolling across all devices. ```js class ScrollClass { constructor () { this.$body = $('body'); this.styles = { disabled: { 'height': '100%', 'overflow': 'hidden', }, enabled:...

```js import Scroll from './path/to/ScrollClass'; $('.site-header').on('click', '.menu-toggle', function(e) { e.preventDefault(); $('body').toggleClass('no-scroll menu-open'); Scroll.disable(); });

The issue with the background scrolling on iOS is a bug in the way the browser handles `overflow: hidden` on the body element. Applying it to the `` tag too...

If this is still an issue, I came up with a solution that actually works across all devices. It's not perfect (emulating mobile devices in Chrome, then using the mousewheel...

This has caught me out many times too. Basically what happens is, even if you delete `` and you are left with ``, adding the `/` inside will result in...

@Daniel4Digital This pointed me in the direction as to why something isn't working. When using `extractVueStyles: 'path/to/filename.css'` the vendor css is just straight up ignored. When setting to `extractVueStyles: '[name.css]'`...

None of the above suggestions seem to be working for me ```ts const resolve = (filePath: string) => { return path.resolve(__dirname, filePath); }; ``` ```js css: { preprocessorOptions: { scss:...

The workaround I got to behave was: ```js test: { minThreads: 0, maxThreads: 1, } ``` This seems silly since this is effectively doing the same thing? 🤔