react-icons / react-icons/react-icons

HiOutlineArrowSmallDown and BsFillSendFill causing el.className.split error [Bug]:

Open
#779 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

usage question
Dominant language
TypeScript
Stars
12.7k
Forks
809
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Whenever a colleague of mine tries to access the DEPLOYED (live) version of my application, it sometimes results in an application error. The error message is:

<Uncaught TypeError: el.className.split is not a function
at getSelector
at logEvent
at HTMLDocument.

This error happens ONLY when I click on these two svgs that react-icon provides.

<HiOutlineArrowSmallDown className="m-1" size={18} />
<BsFillSendFill
            size={25}
            onClick={() => handleSendUserMessage(userInput)}
            className={`${
              userInput !== ""
                ? "dark:text-white dark:hover:text-blue-500 hover:text-blue-500 text-black cursor-pointer"
                : "dark:text-gray-500 text-gray-300 select-none"
            } `}
          />

This needs to be addressed because it is causing an entire application error when user is logging into their dashboard.

Mind you, I am not using any .split methods anywhere in my code.

Expected behavior

Application needs to work properly and not cause an application error.

Minimal sample repository URL

https://myautopilot.azurewebsites.net/

Steps To Reproduce

Cant see issue unless you signup or log in. Remember, this issue only happens on different systems.

Package version

^4.8.0

Relevant log output

No response

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error on the linked sample application with HiOutlineArrowSmallDown and BsFillSendFill, then inspect the getSelector and logEvent stack trace. Compare the rendered elements and className values across systems; done means clicking or viewing these icons no longer produces the el.className.split error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.