nhn / tui.date-picker

Component that selects specific date.
https://nhn.github.io/tui.date-picker/latest/
MIT License
94 stars 30 forks source link

Icons being clicked cause elem.split to fail #127

Open HarleyWilkins opened 11 months ago

HarleyWilkins commented 11 months ago

Describe the bug

When you click a button with an icon in it you get an error telling you the elem.split function failed.

To Reproduce

Steps to reproduce the behavior:

  1. Add a button with an icon or an icon that calls the open logic in some way.
  2. When the button/icon is clicked You receive the error.

Expected behavior

While the date picker still will show up, the console error should not happen as the item clicked may not have a class and wont be parsed if it is an icon.

Desktop (please complete the following information):

HarleyWilkins commented 11 months ago

pull request to fix it https://github.com/nhn/tui.date-picker/pull/126