File - In this June 15, 2018 file photo, Confetti falls as Texas Gov. Greg Abbott, center, greets supporters after speaking at the Texas GOP Convention, in San Antonio. The Texas Supreme Court has upheld Houston's refusal to allow the state Republican convention to hold in-person events in the city due to the coronavirus pandemic. The court on Monday, July 13, 2020, dismissed an appeal of a state district judge's denial of a temporary restraining order sought by the state Republican Party. The state GOP convention was scheduled to begin Thursday at Houston's downtown convention center. (AP Photo/Eric Gay File)

HOUSTON (AP) — The Republican Party of Texas said Monday it would consider moving its convention online after several courts refused to force Houston to allow in-person events the city canceled due to the coronavirus pandemic.

Hours after the Texas Supreme Court dismissed the party's appeal, the state GOP said in a statement that its executive committee would meet Monday night to vote on canceling a three-day event that would have drawn potentially thousands of people.

Houston Mayor Sylvester Turner, a Democrat, said last week that he had directed city lawyers to terminate the contract because he believed the event could not be held safely. He denied that the convention was cancelled due to political differences and cited the potential risk to service workers and first responders if the virus spread through Houston's downtown convention center.

The state party sued a day later, alleging the city illegally breached the contract and accusing Turner of shedding “crocodile tears.”

"The Party argues it has constitutional rights to hold a convention and engage in electoral activities, and that is unquestionably true," the Supreme Court wrote in its opinion. “But those rights do not allow it to simply commandeer use of the Center.”

State District Judge Daryl L. Moore on Monday afternoon denied another party request for an injunction forcing Houston to allow the convention.

Texas has set daily records in recent days for the number of COVID-19 deaths and confirmed cases. Top officials in Houston have called for the city to lock back down as area hospitals strain to accommodate an onslaught of patients.

State District Judge Larry Weiman last week sided with Turner, citing Houston statistics that show major hospitals exceeding their base intensive-care capacity due to an influx of COVID-19 patients.

The Texas Medical Association withdrew its sponsorship of the state GOP convention and asked organizers to cancel in-person gatherings. As the virus has surged throughout the state in June and July, Gov. Greg Abbott, the state’s top Republican, has reversed some business reopenings and broadly required the use of face masks.

State GOP chair James Dickey had insisted that organizers could hold the event safely. Prior to Turner’s move to cancel the convention, Dickey said the party had planned to institute daily temperature scans, provide masks, and install hand sanitizer stations.

State Democrats held an all-online convention in June. Nationally, the Republican Party is moving forward with plans for an in-person convention in August to be held in Jacksonville, Florida, though some GOP elected officials have said they won't attend for health concerns.