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.

Directive ignoring global options

See original GitHub issue

I declare global options like Vue.use(VueCurrencyInput, {autodecimalMode: true, precision: 2, distractionFree: false}) then in my input i used like this <input v-currency /> before i update to the last vue-currency-input.

But now he throws an error Cannot read property 'valueAsInteger' of undefined. Checking the code is when he try get options direct from directive.

To work, with globalOptions i have to put an empty object like this <input v-currency="{}" />

Don’t know if this is a bug or it’s intensional now

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dm4t2commented, Jul 10, 2020

Fixed in Release 1.20.1 🎉

I also updated my CodeSandbox: https://codesandbox.io/s/vue-currency-input-133-2mo9i

1reaction
ascott18commented, Jul 8, 2020

@dm4t2 You can easily reproduce this by initializing the input with a value: https://codesandbox.io/s/vue-currency-input-133-td2qd?file=/src/App.vue

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ensure that the /EDITANDCONTINUE directive is not ...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:REF' specification ... Try turning off SAFESEH on the advanced page of the linker settings....
Read more >
Global directives for Plot-options - Mathematica Stack Exchange
This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical ...
Read more >
Warning Options (Using the GNU Compiler Collection (GCC))
This option controls warnings when an attribute is ignored. This is different from the -Wattributes option in that it warns whenever the compiler...
Read more >
Delphi compiler directives - RAD Studio - Embarcadero DocWiki
Global directives affect the entire compilation and must appear before the declaration part of the program or the unit being compiled.
Read more >
core - Apache HTTP Server Version 2.4
The first option is the default, while options 2-4 are configured using the ErrorDocument directive, which is followed by the HTTP response code...
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