WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-150202-750.MAI' (Errcode: 28 "No space left on device")]
SELECT p.*, o.option_value, GROUP_CONCAT(DISTINCT CONCAT(m.meta_key, "::", m.meta_value) separator "::::") as seo_meta, t.slug, tr.language_code as language FROM wp_posts p JOIN wp_postmeta m ON p.ID = m.post_id JOIN wp_options o ON o.option_name = "siteurl" JOIN wp_term_relationships r ON r.object_id = p.ID JOIN wp_term_taxonomy x ON x.term_taxonomy_id = r.term_taxonomy_id JOIN wp_terms t ON t.term_id = x.term_id JOIN wp_icl_translations tr ON p.ID = tr.element_id WHERE post_type = "page" AND post_status = "publish" AND tr.language_code = 'en' AND t.slug IN ('jquery') AND x.taxonomy = "page_cat" AND tr.element_type = "post_page" AND meta_key IN ("_yoast_wpseo_title", "_yoast_wpseo_metadesc") GROUP BY p.ID

WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-150202-751.MAI' (Errcode: 28 "No space left on device")]
SHOW FULL COLUMNS FROM `wp_options`

Hooking MDB Select's Focus Event

WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-150202-752.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 = 123624 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: Hooking MDB Select's Focus Event

Neil Cresswell pro premium priority asked 2 years ago

We're trying to hook the focus event for a select field. Specifically this is the focus event, not the click or touch events, since we want to fire some code when the field comes into focus. (Say the user is tabbing through a form for example rather than clicking or touching fields.)

Normally we can use an onfocus="" attribute in the HTML or add a focus event listener via JS. Those methods work well for text field inputs while using MDB. However with the MDB Select in particular, the <select> element is replaced "under the hood" by MDB which uses a different input, so we can't for example embed an onfocus in our HTML. I do see there are some helpful custom event hooks you're providing for folks trying to hook MDB's select: https://mdbootstrap.com/docs/standard/forms/select/#docsTabsAPI

We experimented with those and can get shown.mdb.select and open.mdb.select to both fire when an MDB select is clicked, but we've been unable to find a hook that works for when the select field is focused by tabbing around.

Q1: Please can you point us at the correct method to hook the focus event on an MDB select element? If that doesn't exist, possibly it might be helpful to add custom events for focus and blur. Just a thought! Many thanks in advance for looking at this for us. Hopefully we're just missing something obvious here.

Q2: I'm also wondering why there is both a shown.mdb.select and open.mdb.select, since they seem to fire for the exact same circumstances? Is it possible you meant the former to be for when MDB select has finished initializing so it fires at the point where the select field has finished being replaced? Selects in forms can look pretty ugly until the MDB JS code has had a chance to load, which may take a while on a slow connection, so knowing when the JS has finished rendering would be quite useful.


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Linux
  • Provided sample code: No
  • Provided link: Yes