NEW YORK -- Swedish retailer Ikea is recalling around 442,000 nightlights because of the cover of the light can detach, creating a risk of electrical shock.

The Consumer Product Safety Commission said Tuesday Ikea is taking all of its Patrull nightlights off the market and advises consumers to stop using the product and contact the company for a refund. The agency says the dome shaped plastic covering on the light can detach, exposing its electrical components.

The CPSC said a child in Austria who was trying to take the light out of an outlet suffered an electric shock and a minor hand injury when the cover came off. No injuries have been reported in the U.S. or Canada.

The lights come in white, orange and pink, and they automatically turn on in the dark and turn off in the light. They cost about $4 each and were sold at Ikea stores and through the company's website from August 2013 to July 2015.

About 359,000 Patrull nightlights were sold in the U.S. and 83,000 sold in Canada.