Generally, all unused inputs should be tied to either VCC or GND. (Fig. 1) The reason is that the input impedance of general-purpose logic ICs is extremely high, and if left open, an unintended value may be output due to the influence of the surrounding electric field. In addition, at the midpoint potential, through current flows and current consumption increases, and in some cases, it may lead to destruction of the element.
The following documents also contain related information.