Senate Republicans refused to hold a vote on President Obama’s Supreme Court nominee in March 2016. This was a significant break with tradition, but they argued that people should vote on a president first.
Senate Republicans announced they will hold a vote on Ginsburg’s replacement with the next election just six weeks away. Many people are angry that they are using a different standard.
There is no law blocking that move. It is up to each Senator to decide how they vote.