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.

Limit the default events to be emitted

See original GitHub issue

Right now component listen to all events available in flatpickr, i want to reduce the events list.

Here is events list and i have marked the events i want to keep -

  • onChange
  • onClose
  • onDestroy
  • onKeyDown
  • onMonthChange
  • onOpen
  • onYearChange
  • onValueUpdate
  • onReady
  • onPreCalendarPosition
  • onDayCreate
  • onParseConfig

You will be able to override this via :events="yourEventsList" prop.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ankurk91commented, Feb 24, 2018

closed with v7.0.0

1reaction
james-brndwgncommented, Feb 15, 2018

Hmm… you were right that’s how the plugin creators have designed it. Seems excessive. https://jsfiddle.net/1ns783ze/5/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Events | Node.js v19.3.0 Documentation
By default, a maximum of 10 listeners can be registered for any single event. This limit can be changed for individual EventEmitter instances...
Read more >
possible EventEmitter memory leak detected - node.js
//Assume Logger is a module that emits errors var Logger = require('./Logger.js'); for (var i ... turn off limits by default (BE CAREFUL)...
Read more >
Node.js EventEmitter - TutorialsTeacher
By default EventEmitters will print a warning if more than 10 listeners are added for a particular event. emitter.getMaxListeners(), Returns the current maximum...
Read more >
Node.js sends warnings when you add too many listeners to ...
Node.js gives friendly warnings in case you add too much event listeners to an event ... Create an emitter, emit events and react...
Read more >
Receiving and Handling Events with Combine
To receive the text field's notifications with Combine, access the default instance of NotificationCenter and call its publisher(for:object:) method. This call ...
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