Josh Lidsky holds Sandy the rabbit; with him are his daughters, Kayden, left, and Madison. (VM Williams/NEW HAVEN REGISTER VIA ASSOCIATED PRESS)

Kayden Lidsky almost had to give up her pet. Her town, North Haven, Connecticut, has a law that says pet rabbits have to live in houses with at least two acres of land, and Kayden’s yard was too small. A town employee told her family last month that the pet had to go.

But the story of Kayden, 7, and Sandy, her 20-pound bunny, made news across the country. The town received about 1,000 calls and e-mails from people asking that the rabbit be allowed to stay.

Michael Freda, an elected town official, said last week that Kayden and her family would be allowed to keep the bunny. The town plans to change the rule.

“All along, I’ve said that little girl is not losing that rabbit,” Freda said. “We have a ridiculous [law] . . . and we’re going to change it.”

Josh Lidsky, Kayden’s dad, had planned to challenge the order.

“I’m happy it’s over,” he said. “It’s very tough for a 7-year-old to understand why people would do something like that.”