WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-155e51-95.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 119555 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: mdb.Select.setValue() not working correctly
Expected behavior
const select = document.querySelector('.select');
const singleSelectInstance = mdb.Select.getInstance(select);
if (singleSelectInstance) singleSelectInstance.setValue(value);
This code checks to see if there's an mdb.Select instantiated, gets that instance, and sets the value, resulting in the rendered mdb.Select to change which option is displayed as well as the underlying select so I can get the selectedIndex or value later in my code.
Actual behavior
Snippet harness doesn't seem to like function variables? Not sure. Feel free to alter it.
Doesn't change the mdb.Select appearance or element value on my local environment either.
Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/dhermann/4099918
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 4.1.0
- Device: Desktop
- Browser: Safari
- OS: macOS Monterrey 12.0.1
- Provided sample code: No
- Provided link: Yes