The White House canceled national security adviser John Bolton's appearance on CNN's "State of the Union," according to host Jake Tapper.

Tapper said Bolton was "fully prepared to do the interview" but that the White House ditched the appearance after President Donald Trump attacked a CNN reporter during a UK press conference.

During the exchange, CNN White House correspondent Jim Acosta tried to ask Trump a question after the president attacked the network, and Trump responded that "CNN is fake news" and refused to call on Acosta.

Press secretary Sarah Sanders said the White House "decided to reprioritize the TV appearances" instead of "rewarding bad behavior."

The national security adviser John Bolton was scheduled to appear on CNN's "State of the Union" on Sunday morning.

But on Saturday, Jake Tapper, the show's host, tweeted that the White House had canceled Bolton's interview after President Donald Trump attacked a CNN reporter during his trip to the UK this week.

"The president attacked CNN during his UK presser, and our WH correspondent tried to ask a question," Tapper wrote.

Tapper was referring to an exchange on Friday at a joint press conference held by Trump and UK Prime Minister Theresa May. CNN reporter Jim Acosta asked the president for a question "since you attacked CNN." Trump responded to that by asserting that "CNN is fake news" and refused to call on Acosta.

"I don't take questions from CNN," he added.

Tapper also wrote in his tweet that "Bolton remains fully prepared to do the interview" even though it was canceled by the White House.

Several hours after Tapper's tweet, White House press secretary Sarah Sanders took to Twitter to respond.

She wrote that "a CNN reporter disrespected" Trump and "instead of rewarding bad behavior, we decided to reprioritize the TV appearances for administration officials."

Bolton appeared on ABC's "This Week" on Sunday morning and also addressed the incident.

"I don't seek out the press; I don't talk to them," he said. "I appear when I'm asked to, and if I'm not asked to appear, I don't do it. And I don't communicate with them, either."

Tapper took to TV Sunday morning during his show to explain what happened with Bolton's appearance. He said that Bolton or anybody from the White House is invited to be on the show at any time.

Bolton has been on "State of the Union" with Jake Tapper numerous times since joining the Trump administration.