All of that was the great sin the royal family of Jeroboam committed. It led to their fall from power. Because of it, they were destroyed from the face of the earth.
Nadab did what was evil in the sight of the Lord. He lived the way his father had lived. He committed the same sin his father Jeroboam had caused Israel to commit.